We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 598c5b4 commit b0f1fcdCopy full SHA for b0f1fcd
2 files changed
buildSrc/src/main/kotlin/docling-release.gradle.kts
@@ -15,10 +15,9 @@ publishing {
15
from(components["java"])
16
17
// Attach SBOM artifact to publication
18
- artifact(layout.buildDirectory.file("reports/cyclonedx/bom.json")) {
+ artifact(tasks.named("cyclonedxBom")) {
19
classifier = "cyclonedx"
20
extension = "json"
21
- builtBy(tasks.named("cyclonedxBom"))
22
}
23
24
pom {
buildSrc/src/main/kotlin/docling-sbom.gradle.kts
@@ -2,7 +2,8 @@ plugins {
2
id("org.cyclonedx.bom")
3
4
5
-tasks.named("cyclonedxBom") {
+tasks.named<org.cyclonedx.gradle.CyclonedxAggregateTask>("cyclonedxBom") {
6
group = "build"
7
description = "Generates a CycloneDX Software Bill of Materials (SBOM)"
8
+ xmlOutput.unsetConvention() // Generate only JSON format
9
0 commit comments