Configure SBOM should return artifact
This commit is contained in:
committed by
Space Team
parent
1e4f78dcff
commit
02de693a12
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user