Configure SBOM should return artifact

This commit is contained in:
Bogdan Mukvich
2023-05-22 13:48:08 +02:00
committed by Space Team
parent 1e4f78dcff
commit 02de693a12
3 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -431,7 +431,7 @@ val distJs = distTask<Sync>("distJs") {
}
val compilerZipSbomName = "kotlin-compiler-zip"
val compilerZipSbom = configureSbom(
val sbom = configureSbom(
moduleName = compilerZipSbomName,
gradleConfigurations = setOf("runtimeClasspath", libraries.name, librariesStripVersion.name, compilerPlugins.name)
)
@@ -443,10 +443,11 @@ distTask<Copy>("dist") {
dependsOn(distCommon)
dependsOn(distMaven)
dependsOn(distJs)
dependsOn("spdxSbomForKotlin-compiler-zip")
from(buildNumber)
from(distStdlibMinimalForTests)
from(compilerZipSbom.artifacts.files) {
from(sbom.file) {
rename("$compilerZipSbomName.spdx.json", "${project.name}-${project.version}.spdx.json")
}
}