From 216d156968aa664df64d0d6e1017917044ac8b7a Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 18 May 2022 15:45:03 +0200 Subject: [PATCH] Refine native profile to use a classifier for the repackaged jar This commit refines 80470f0b26 so that the 'repackage' goal of the Spring Boot maven plugin uses a classifier. Previously, a regular package with the profile fails as the Native Build Tools is trying to use the repackaged archive as a regular jar file. This is temporary as we'd like to explore other solutions, including suggesting an additional option in the NBT plugin itself that uses the regular classpath, rather than the produced jar. See gh-30830 --- .../spring-boot-starter-parent/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) 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 45087f60e0..db6a102255 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,6 +232,12 @@ publishing.publications.withType(MavenPublication) { delegate.goal('aot-generate') } } + execution { + delegate.id('repackage') + configuration { + delegate.classifier('exec') + } + } } } plugin {