Configure the Native buildpack when enabling the native Maven profile
This commit makes sure that the Native Cloud Native Buildpacks is configured when the native Maven profile is enabled. Doing so lets users generate a native image with a single command-line by default: $ ./mvnw -Pnative spring-boot:build-image Closes gh-32764
This commit is contained in:
@@ -236,6 +236,14 @@ publishing.publications.withType(MavenPublication) {
|
||||
plugin {
|
||||
delegate.groupId('org.springframework.boot')
|
||||
delegate.artifactId('spring-boot-maven-plugin')
|
||||
configuration {
|
||||
image {
|
||||
delegate.builder("paketobuildpacks/builder:tiny");
|
||||
env {
|
||||
delegate.BP_NATIVE_IMAGE("true")
|
||||
}
|
||||
}
|
||||
}
|
||||
executions {
|
||||
execution {
|
||||
delegate.id('process-aot')
|
||||
|
||||
Reference in New Issue
Block a user