Make bootBuildImage produce native image when NBT plugin is applied
Closes gh-32768
This commit is contained in:
@@ -105,7 +105,7 @@ The following table summarizes the available properties and their default values
|
||||
| `builder`
|
||||
| `--builder`
|
||||
| Name of the Builder image to use.
|
||||
| `paketobuildpacks/builder:base`
|
||||
| `paketobuildpacks/builder:base` or `paketobuildpacks/builder:tiny` when {nbt-gradle-plugin}[GraalVM Native Image plugin] is applied.
|
||||
|
||||
| `runImage`
|
||||
| `--runImage`
|
||||
@@ -126,7 +126,7 @@ Acceptable values are `ALWAYS`, `NEVER`, and `IF_NOT_PRESENT`.
|
||||
| `environment`
|
||||
|
|
||||
| Environment variables that should be passed to the builder.
|
||||
|
|
||||
| Empty or `['BP_NATIVE_IMAGE': 'true']` when {nbt-gradle-plugin}[GraalVM Native Image plugin] is applied.
|
||||
|
||||
| `buildpacks`
|
||||
|
|
||||
|
||||
@@ -79,5 +79,6 @@ When the {nbt-gradle-plugin}[GraalVM Native Image plugin] is applied to a projec
|
||||
. Adds the output of the `aotTest` source set to the classpath of the `test` GraalVM native binary.
|
||||
. Configures the GraalVM extension to disable Toolchain detection.
|
||||
. Configures the `bootJar` task to include the reachability metadata produced by the `collectReachabilityMetadata` task in its jar.
|
||||
. Configures the `bootBuildImage` task to use `paketobuildpacks/builder:tiny` as its builder and to set `BP_NATIVE_IMAGE` to `true` in its environment.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user