Generate SBOM for kotlin gradle plugin and its API
^KTI-1129
This commit is contained in:
committed by
Space Team
parent
7a97a43036
commit
ec73815f80
@@ -78,7 +78,7 @@ fun Project.configureCommonPublicationSettingsForGradle(
|
|||||||
.withType<MavenPublication>()
|
.withType<MavenPublication>()
|
||||||
.configureEach {
|
.configureEach {
|
||||||
configureKotlinPomAttributes(project)
|
configureKotlinPomAttributes(project)
|
||||||
if (sbom && project.name !in testPlugins) {
|
if (sbom && project.name !in internalPlugins) {
|
||||||
if (name == "pluginMaven") {
|
if (name == "pluginMaven") {
|
||||||
val sbomTask = configureSbom(target = "PluginMaven")
|
val sbomTask = configureSbom(target = "PluginMaven")
|
||||||
artifact("$buildDir/spdx/PluginMaven/PluginMaven.spdx.json") {
|
artifact("$buildDir/spdx/PluginMaven/PluginMaven.spdx.json") {
|
||||||
@@ -124,11 +124,14 @@ fun Project.excludeGradleCommonDependencies(sourceSet: SourceSet) {
|
|||||||
configurations[sourceSet.runtimeOnlyConfigurationName].excludeGradleCommonDependencies()
|
configurations[sourceSet.runtimeOnlyConfigurationName].excludeGradleCommonDependencies()
|
||||||
}
|
}
|
||||||
|
|
||||||
private val testPlugins = setOf(
|
private val internalPlugins = setOf(
|
||||||
"kotlin-gradle-plugin-api",
|
|
||||||
"android-test-fixes",
|
"android-test-fixes",
|
||||||
"gradle-warnings-detector",
|
"gradle-warnings-detector",
|
||||||
"kotlin-compiler-args-properties",
|
"kotlin-compiler-args-properties",
|
||||||
|
)
|
||||||
|
|
||||||
|
private val testPlugins = internalPlugins + setOf(
|
||||||
|
"kotlin-gradle-plugin-api",
|
||||||
"kotlin-gradle-plugin",
|
"kotlin-gradle-plugin",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user