We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 598c5b4 commit 95332d1Copy full SHA for 95332d1
1 file changed
buildSrc/src/main/kotlin/docling-release.gradle.kts
@@ -14,11 +14,14 @@ publishing {
14
create<MavenPublication>("maven") {
15
from(components["java"])
16
17
- // Attach SBOM artifact to publication
18
- artifact(layout.buildDirectory.file("reports/cyclonedx/bom.json")) {
19
- classifier = "cyclonedx"
20
- extension = "json"
21
- builtBy(tasks.named("cyclonedxBom"))
+ // Attach SBOM artifacts to publication (both JSON and XML)
+ val cyclonedxTask = tasks.named("cyclonedxBom")
+ cyclonedxTask.get().outputs.files.forEach { file ->
+ artifact(file) {
+ classifier = "cyclonedx"
22
+ extension = file.extension
23
+ builtBy(cyclonedxTask)
24
+ }
25
}
26
27
pom {
0 commit comments