Skip to content

Commit 216d156

Browse files
committed
Refine native profile to use a classifier for the repackaged jar
This commit refines 80470f0 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
1 parent 723a7b2 commit 216d156

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ publishing.publications.withType(MavenPublication) {
232232
delegate.goal('aot-generate')
233233
}
234234
}
235+
execution {
236+
delegate.id('repackage')
237+
configuration {
238+
delegate.classifier('exec')
239+
}
240+
}
235241
}
236242
}
237243
plugin {

0 commit comments

Comments
 (0)