Add native profile to spring-boot-starter-parent

Closes gh-30830

Co-authored-by: Stephane Nicoll <snicoll@vmware.com>
This commit is contained in:
Andy Wilkinson 2022-04-13 09:56:21 +01:00
parent e81c6337c6
commit 80470f0b26
2 changed files with 40 additions and 0 deletions

View File

@ -1036,6 +1036,13 @@ bom {
]
}
}
library("Native Build Tools Plugin", "0.9.11") {
group("org.graalvm.buildtools") {
plugins = [
"native-maven-plugin"
]
}
}
library("NekoHTML", "1.9.22") {
group("net.sourceforge.nekohtml") {
modules = [

View File

@ -217,6 +217,39 @@ publishing.publications.withType(MavenPublication) {
}
}
}
profiles {
profile {
delegate.id("native")
build {
plugins {
plugin {
delegate.groupId('org.springframework.boot')
delegate.artifactId('spring-boot-maven-plugin')
executions {
execution {
delegate.id('aot-generate')
goals {
delegate.goal('aot-generate')
}
}
}
}
plugin {
delegate.groupId('org.graalvm.buildtools')
delegate.artifactId('native-maven-plugin')
executions {
execution {
delegate.id('build-native')
goals {
delegate.goal('build')
}
}
}
}
}
}
}
}
}
}
}