Skip to content

Commit 9633114

Browse files
committed
Add buildpacks and Native Build Tools specific binding
See spring-projectsgh-26455
1 parent 39da1c3 commit 9633114

File tree

1 file changed

+59
-0
lines changed
  • spring-boot-project/spring-boot-starters/spring-boot-starter-parent

1 file changed

+59
-0
lines changed

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

+59
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ publishing.publications.withType(MavenPublication) {
231231
profiles {
232232
profile {
233233
delegate.id("native")
234+
activation {
235+
property {
236+
delegate.name('spring-boot.native')
237+
}
238+
}
234239
build {
235240
pluginManagement {
236241
plugins {
@@ -277,6 +282,60 @@ publishing.publications.withType(MavenPublication) {
277282
}
278283
}
279284
}
285+
profile {
286+
delegate.id("nativeBuildpacks")
287+
activation {
288+
property {
289+
delegate.name('spring-boot.native')
290+
delegate.value('buildpacks')
291+
}
292+
}
293+
build {
294+
pluginManagement {
295+
plugins {
296+
plugin {
297+
delegate.groupId('org.springframework.boot')
298+
delegate.artifactId('spring-boot-maven-plugin')
299+
executions {
300+
execution {
301+
delegate.id('build-image')
302+
goals {
303+
delegate.goal('build-image')
304+
}
305+
}
306+
}
307+
}
308+
}
309+
}
310+
}
311+
}
312+
profile {
313+
delegate.id("nativeNbt")
314+
activation {
315+
property {
316+
delegate.name('spring-boot.native')
317+
delegate.value('nbt')
318+
}
319+
}
320+
build {
321+
pluginManagement {
322+
plugins {
323+
plugin {
324+
delegate.groupId('org.graalvm.buildtools')
325+
delegate.artifactId('native-maven-plugin')
326+
executions {
327+
execution {
328+
delegate.id('build-image')
329+
goals {
330+
delegate.goal('compile-no-fork')
331+
}
332+
}
333+
}
334+
}
335+
}
336+
}
337+
}
338+
}
280339
profile {
281340
delegate.id("nativeTest")
282341
delegate.dependencies {

0 commit comments

Comments
 (0)