Skip to content

Commit 0dff055

Browse files
committed
Apply configuration to CycloneDX plugin only for the execution
Closes gh-40927
1 parent 9e86230 commit 0dff055

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

Diff for: spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ publishing.publications.withType(MavenPublication) {
162162
goals {
163163
delegate.goal('makeAggregateBom')
164164
}
165+
configuration {
166+
delegate.projectType('application')
167+
delegate.outputDirectory('${project.build.outputDirectory}/META-INF/sbom')
168+
delegate.outputFormat('json')
169+
delegate.outputName('application.cdx')
170+
}
165171
}
166172
}
167-
configuration {
168-
delegate.projectType('application')
169-
delegate.outputDirectory('${project.build.outputDirectory}/META-INF/sbom')
170-
delegate.outputFormat('json')
171-
delegate.outputName('application.cdx')
172-
}
173173
}
174174
plugin {
175175
delegate.groupId('org.springframework.boot')

0 commit comments

Comments
 (0)