From a8e701cee2ff63090d9218303238ed990cacd8cf Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 17 Oct 2022 13:51:20 -0700 Subject: [PATCH] Provide maven configuration for add-reachability-metadata goal Update `spring-boot-starter-parent` to execute the native build tools `add-reachability-metadata` goal when the 'native' profile is active. Closes gh-32736 --- .../spring-boot-starter-parent/build.gradle | 8 ++++++++ 1 file changed, 8 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 a04820ecc21..adff4c7529f 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 @@ -254,6 +254,14 @@ publishing.publications.withType(MavenPublication) { delegate.enabled('true') } } + executions { + execution { + delegate.id('add-reachability-metadata') + goals { + delegate.goal('add-reachability-metadata') + } + } + } } } }