From 9633114f62abb991d98dac629733ca18495b0f9d Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 21 Nov 2022 14:53:33 +0100 Subject: [PATCH] Add buildpacks and Native Build Tools specific binding See gh-26455 --- .../spring-boot-starter-parent/build.gradle | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle b/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle index 6abae77abcf8..652d432d49fd 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle @@ -231,6 +231,11 @@ publishing.publications.withType(MavenPublication) { profiles { profile { delegate.id("native") + activation { + property { + delegate.name('spring-boot.native') + } + } build { pluginManagement { plugins { @@ -277,6 +282,60 @@ publishing.publications.withType(MavenPublication) { } } } + profile { + delegate.id("nativeBuildpacks") + activation { + property { + delegate.name('spring-boot.native') + delegate.value('buildpacks') + } + } + build { + pluginManagement { + plugins { + plugin { + delegate.groupId('org.springframework.boot') + delegate.artifactId('spring-boot-maven-plugin') + executions { + execution { + delegate.id('build-image') + goals { + delegate.goal('build-image') + } + } + } + } + } + } + } + } + profile { + delegate.id("nativeNbt") + activation { + property { + delegate.name('spring-boot.native') + delegate.value('nbt') + } + } + build { + pluginManagement { + plugins { + plugin { + delegate.groupId('org.graalvm.buildtools') + delegate.artifactId('native-maven-plugin') + executions { + execution { + delegate.id('build-image') + goals { + delegate.goal('compile-no-fork') + } + } + } + } + } + } + } + } profile { delegate.id("nativeTest") delegate.dependencies {