From: PJ Fanning Date: Wed, 21 Dec 2022 11:23:43 +0000 (+0000) Subject: cyclonedx per module X-Git-Tag: REL_5_2_4~343 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8d4597ea4070bc46b92c0b859b80f517446d703;p=poi.git cyclonedx per module git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906134 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build.gradle b/build.gradle index 4312e5caf0..040389d7f0 100644 --- a/build.gradle +++ b/build.gradle @@ -36,8 +36,8 @@ plugins { id 'distribution' id "com.github.spotbugs" version '5.0.13' id 'de.thetaphi.forbiddenapis' version '3.4' + id 'org.sonarqube' version '3.5.0.2730' id 'org.cyclonedx.bom' version '1.7.3' - id 'org.sonarqube' version "3.5.0.2730" } repositories { @@ -75,7 +75,7 @@ ant.taskdef(name: "junit", wrapper { - gradleVersion = '7.5.1' + gradleVersion = '7.6' } task adjustWrapperPropertiesFile { @@ -112,6 +112,7 @@ subprojects { apply plugin: 'signing' apply plugin: 'de.thetaphi.forbiddenapis' apply plugin: 'com.github.spotbugs' + apply plugin: 'org.cyclonedx.bom' ext { bouncyCastleVersion = '1.70' @@ -844,22 +845,3 @@ binDistZip.finalizedBy fixDistDir binDistTar.finalizedBy fixDistDir srcDistZip.finalizedBy fixDistDir srcDistTar.finalizedBy fixDistDir - -cyclonedxBom { - // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) - includeConfigs = ["runtimeClasspath"] - // skipConfigs is a list of configuration names to exclude when generating the BOM - //skipConfigs = ["compileClasspath", "testCompileClasspath"] - // Specified the type of project being built. Defaults to 'library' - projectType = "library" - // Specified the version of the CycloneDX specification to use. Defaults to 1.4. - schemaVersion = "1.4" - // Boms destination directory (defaults to build/reports) - destination = file("build/reports") - // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' - outputName = "pom-${project.version}.bom" - // The file format generated, can be xml, json or all for generating both - outputFormat = "xml" - // Exclude BOM Serial Number - includeBomSerialNumber = true -} diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle index 1e72a8f778..435e050c3b 100644 --- a/poi-examples/build.gradle +++ b/poi-examples/build.gradle @@ -113,3 +113,22 @@ sourcesJar { from("$projectDir/../legal/NOTICE") } } + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-examples-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +} diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle index 9d634f18ec..2a4f7a9ae6 100644 --- a/poi-excelant/build.gradle +++ b/poi-excelant/build.gradle @@ -202,3 +202,22 @@ publishing { } } } + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-excelant-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +} diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle index 79c7ec1a4b..0900c57b34 100644 --- a/poi-ooxml-full/build.gradle +++ b/poi-ooxml-full/build.gradle @@ -179,4 +179,23 @@ publishing { spotbugsTest.enabled = false spotbugsMain.enabled = false javadoc.enabled = false -javadocJar.enabled = false \ No newline at end of file +javadocJar.enabled = false + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-ooxml-full-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +} \ No newline at end of file diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle index 7f6c5a4776..a21bad71cf 100644 --- a/poi-ooxml-lite/build.gradle +++ b/poi-ooxml-lite/build.gradle @@ -166,4 +166,23 @@ sourcesJar { spotbugsTest.enabled = false spotbugsMain.enabled = false javadoc.enabled = false -javadocJar.enabled = false \ No newline at end of file +javadocJar.enabled = false + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-ooxml-lite-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +} \ No newline at end of file diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index 6407b9b6e4..e435ee71aa 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -366,3 +366,22 @@ publishing { } } } + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-ooxml-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +} diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle index 9f7ae5e5f7..4c92d381c9 100644 --- a/poi-scratchpad/build.gradle +++ b/poi-scratchpad/build.gradle @@ -207,3 +207,22 @@ publishing { } } } + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-scratchpad-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +} diff --git a/poi/build.gradle b/poi/build.gradle index 6879ef65ae..c8dee0de43 100644 --- a/poi/build.gradle +++ b/poi/build.gradle @@ -236,3 +236,22 @@ publishing { } } } + +cyclonedxBom { + // includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration) + includeConfigs = ["runtimeClasspath"] + // skipConfigs is a list of configuration names to exclude when generating the BOM + //skipConfigs = ["compileClasspath", "testCompileClasspath"] + // Specified the type of project being built. Defaults to 'library' + projectType = "library" + // Specified the version of the CycloneDX specification to use. Defaults to 1.4. + schemaVersion = "1.4" + // Boms destination directory (defaults to build/reports) + destination = file("build/reports") + // The file name for the generated BOMs (before the file format suffix). Defaults to 'bom' + outputName = "poi-${project.version}.bom" + // The file format generated, can be xml, json or all for generating both + outputFormat = "all" + // Exclude BOM Serial Number + includeBomSerialNumber = true +}