Skip to content

Commit 515077c

Browse files
committed
fix: configure plugin
1 parent c0019ef commit 515077c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ allprojects {
115115
apply(plugin = "io.gitlab.arturbosch.detekt")
116116
apply(plugin = "project-report")
117117
apply(plugin = "org.owasp.dependencycheck")
118+
apply(plugin = "org.cyclonedx.bom")
118119

119120
version = rootProject.scmVersion.version ?: error("Root project did not configure scmVersion!")
120121

@@ -146,6 +147,13 @@ allprojects {
146147
mavenCentral()
147148
}
148149

150+
tasks.cyclonedxBom {
151+
includeConfigs = listOf("runtimeClasspath")
152+
outputFormat = "xml" // by default it would also generate json
153+
projectType = "application"
154+
outputName = "cosmotech-api-bom"
155+
}
156+
149157
tasks.withType<HtmlDependencyReportTask>().configureEach { projects = project.allprojects }
150158

151159
configure<SpotlessExtension> {

0 commit comments

Comments
 (0)