Skip to content

Commit 80470f0

Browse files
wilkinsonasnicoll
andcommitted
Add native profile to spring-boot-starter-parent
Closes gh-30830 Co-authored-by: Stephane Nicoll <[email protected]>
1 parent e81c633 commit 80470f0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,13 @@ bom {
10361036
]
10371037
}
10381038
}
1039+
library("Native Build Tools Plugin", "0.9.11") {
1040+
group("org.graalvm.buildtools") {
1041+
plugins = [
1042+
"native-maven-plugin"
1043+
]
1044+
}
1045+
}
10391046
library("NekoHTML", "1.9.22") {
10401047
group("net.sourceforge.nekohtml") {
10411048
modules = [

spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,39 @@ publishing.publications.withType(MavenPublication) {
217217
}
218218
}
219219
}
220+
profiles {
221+
profile {
222+
delegate.id("native")
223+
build {
224+
plugins {
225+
plugin {
226+
delegate.groupId('org.springframework.boot')
227+
delegate.artifactId('spring-boot-maven-plugin')
228+
executions {
229+
execution {
230+
delegate.id('aot-generate')
231+
goals {
232+
delegate.goal('aot-generate')
233+
}
234+
}
235+
}
236+
}
237+
plugin {
238+
delegate.groupId('org.graalvm.buildtools')
239+
delegate.artifactId('native-maven-plugin')
240+
executions {
241+
execution {
242+
delegate.id('build-native')
243+
goals {
244+
delegate.goal('build')
245+
}
246+
}
247+
}
248+
}
249+
}
250+
}
251+
}
252+
}
220253
}
221254
}
222255
}

0 commit comments

Comments
 (0)