Add SBOM to dist compiler task

This commit is contained in:
Bogdan Mukvich
2023-05-09 13:05:51 +02:00
committed by Space Team
parent 04b39ba2e1
commit bbe5418a85
2 changed files with 19 additions and 5 deletions
+3 -2
View File
@@ -395,6 +395,8 @@ val distJs = distTask<Sync>("distJs") {
from(distJSContents)
}
val sbom = configureSbom(setOf("runtimeClasspath", libraries.name, librariesStripVersion.name, compilerPlugins.name))
distTask<Copy>("dist") {
destinationDir = File(distDir)
@@ -405,6 +407,7 @@ distTask<Copy>("dist") {
from(buildNumber)
from(distStdlibMinimalForTests)
fromSbom(sbom)
}
inline fun <reified T : AbstractCopyTask> Project.distTask(
@@ -416,5 +419,3 @@ inline fun <reified T : AbstractCopyTask> Project.distTask(
rename(quote("-$bootstrapKotlinVersion"), "")
block()
}
configureSbom(setOf("runtimeClasspath", libraries.name, librariesStripVersion.name, compilerPlugins.name))