From 0a029cc41665edd847e2c8a818f1d49a411b5f23 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 21 Nov 2022 12:43:52 +0100 Subject: [PATCH] Hacking See gh-33184 --- .../spring-boot-starter-parent/build.gradle | 62 ++++++++++--------- 1 file changed, 32 insertions(+), 30 deletions(-) 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 cabb6930207e..6abae77abcf8 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 @@ -232,42 +232,44 @@ publishing.publications.withType(MavenPublication) { profile { delegate.id("native") build { - plugins { - plugin { - delegate.groupId('org.springframework.boot') - delegate.artifactId('spring-boot-maven-plugin') - configuration { - image { - delegate.builder("paketobuildpacks/builder:tiny"); - env { - delegate.BP_NATIVE_IMAGE("true") + pluginManagement { + plugins { + plugin { + delegate.groupId('org.springframework.boot') + delegate.artifactId('spring-boot-maven-plugin') + configuration { + image { + delegate.builder("paketobuildpacks/builder:tiny"); + env { + delegate.BP_NATIVE_IMAGE("true") + } } } - } - executions { - execution { - delegate.id('process-aot') - goals { - delegate.goal('process-aot') + executions { + execution { + delegate.id('process-aot') + goals { + delegate.goal('process-aot') + } } } } - } - plugin { - delegate.groupId('org.graalvm.buildtools') - delegate.artifactId('native-maven-plugin') - configuration { - delegate.classesDirectory('${project.build.outputDirectory}') - metadataRepository { - delegate.enabled('true') + plugin { + delegate.groupId('org.graalvm.buildtools') + delegate.artifactId('native-maven-plugin') + configuration { + delegate.classesDirectory('${project.build.outputDirectory}') + metadataRepository { + delegate.enabled('true') + } + delegate.requiredVersion('22.3') } - delegate.requiredVersion('22.3') - } - executions { - execution { - delegate.id('add-reachability-metadata') - goals { - delegate.goal('add-reachability-metadata') + executions { + execution { + delegate.id('add-reachability-metadata') + goals { + delegate.goal('add-reachability-metadata') + } } } }