Skip to content

Commit

Permalink
Add buildpacks and Native Build Tools specific binding
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Nov 21, 2022
1 parent 39da1c3 commit b1eac07
Showing 1 changed file with 59 additions and 0 deletions.
Expand Up @@ -231,6 +231,11 @@ publishing.publications.withType(MavenPublication) {
profiles {
profile {
delegate.id("native")
activation {
property {
delegate.name('spring-boot.native')
}
}
build {
pluginManagement {
plugins {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b1eac07

Please sign in to comment.