From 0dff055c38772ad81d5a362d6949202daa812e4b Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Wed, 29 May 2024 14:37:12 +0200 Subject: [PATCH] Apply configuration to CycloneDX plugin only for the execution Closes gh-40927 --- .../spring-boot-starter-parent/build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 597eac3f3f8..168b41e33ed 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 @@ -162,14 +162,14 @@ publishing.publications.withType(MavenPublication) { goals { delegate.goal('makeAggregateBom') } + configuration { + delegate.projectType('application') + delegate.outputDirectory('${project.build.outputDirectory}/META-INF/sbom') + delegate.outputFormat('json') + delegate.outputName('application.cdx') + } } } - configuration { - delegate.projectType('application') - delegate.outputDirectory('${project.build.outputDirectory}/META-INF/sbom') - delegate.outputFormat('json') - delegate.outputName('application.cdx') - } } plugin { delegate.groupId('org.springframework.boot')