jdaugherty commented on code in PR #15099:
URL: https://github.com/apache/grails-core/pull/15099#discussion_r2391494653


##########
gradle/sbom-config.gradle:
##########
@@ -33,83 +33,91 @@ import java.time.temporal.ChronoUnit
 
 apply plugin: 'org.cyclonedx.bom'
 
-project.ext.setProperty('sbomOutputLocation', 
project.layout.buildDirectory.file("${findProperty('pomArtifactId') ?: 
project.name}-${projectVersion}-sbom.json"))
+ext {
+    sbomOutputLocation = layout.buildDirectory.file(
+            "${findProperty('pomArtifactId') ?: 
name}-$projectVersion-sbom.json"
+    )
+}
 
-def sbomTask = tasks.named('cyclonedxBom', CycloneDxTask)
-sbomTask.configure { CycloneDxTask it ->
+tasks.withType(CycloneDxTask).configureEach {

Review Comment:
   That's where my confusion was, thank you.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to