arconia build
The arconia build command builds your Spring Boot application. It delegates to your build tool’s (Maven/Gradle) build tasks to compile, test, and package your application as a JAR artifact or a GraalVM native executable.
Usage
Basic usage:
arconia build
Clean build (removes previous build output before building):
arconia build --clean
Build without running tests:
arconia build --skip-tests
Build a GraalVM native executable:
arconia build --native
Clean build of a native executable, skipping tests:
arconia build --clean --native --skip-tests
Pass extra parameters to the underlying build tool using --:
arconia build -- --stacktrace
arconia build -- -DmyProperty=value
Options
The following options are available:
| Option | Default | Description |
|---|---|---|
|
|
Perform a clean build, removing previous build outputs before building. |
|
|
Skip tests during the build. |
|
|
Perform a native build using GraalVM Native Image, producing a standalone native executable. |
|
|
Include verbose output. |
|
Display help information for the command. |
The --native option requires GraalVM with the Native Image component installed. Native builds take a little bit longer than JVM builds but produce a standalone binary with fast startup time and low memory footprint.
|
Build Output
-
JVM build: produces a fat JAR in
build/libs/(Gradle) ortarget/(Maven). -
Native build: produces a standalone native executable in
build/native/nativeCompile/(Gradle) ortarget/(Maven).
Build Tool Integration
The build command automatically detects whether your project uses Maven or Gradle and runs the appropriate build task:
| Build Tool | Command |
|---|---|
Gradle |
For Java builds:
For native builds:
|
Maven |
For Java builds:
For native builds:
|
Use -- to pass parameters directly to the underlying build tool. The -- separator is required to distinguish Arconia CLI options from build tool parameters.