just build
What does it do?
just build
simplifies building Spring Boot applications with Maven and Gradle.
Executing just build <target>
picks up the best Maven/Gradle command (mvn
, ./mvnw
, mvnd
, gradle
, ./gradlew
) and translates the target into a Maven or Gradle goal depending on which build tool is used in the project:
Command | Description | Maven | Gradle |
---|---|---|---|
just build or just build jvm |
builds a default target (if not configured, builds an executable jar) | mvn package |
gradle build |
just build native |
builds a native executable | mvn native:compile -Pnative |
gradle nativeCompile |
just build native-image |
builds a Docker Image with a native executable | mvn spring-boot:build-image -Pnative |
gradle bootBuildImage |
just build image |
builds a Docker Image with an executable JAR | mvn spring-boot:build-image |
gradle bootBuildImage |
Options
Option | Description | Maven | Gradle |
---|---|---|---|
--skip-tests |
skips tests compilation and execution | -Dmaven.test.skip=true |
-x test |
--quick |
like --skip-test but also skips all possible checks and docs generation |
-Dmaven.test.skip=true -Dasciidoctor.skip=true -Djgassistant.skip=true -Dspotbugs.skip=true -Dcheckstyle.skip=true -Dinvoker.skip=true -Ddocker.skip=true -Djapicmp.skip=true -Dlicense.skip=true -Dpmd.skip=true -Dmaven.javadoc.skip=true=true -Djacoco.skip=true |
-x check |
Example
$ just build native --skip-tests