]> source.dussan.org Git - poi.git/commitdiff
cyclonedx per module
authorPJ Fanning <fanningpj@apache.org>
Wed, 21 Dec 2022 11:23:43 +0000 (11:23 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 21 Dec 2022 11:23:43 +0000 (11:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906134 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
poi-examples/build.gradle
poi-excelant/build.gradle
poi-ooxml-full/build.gradle
poi-ooxml-lite/build.gradle
poi-ooxml/build.gradle
poi-scratchpad/build.gradle
poi/build.gradle

index 4312e5caf0586b7f876bd48c90b2e2c0c9fff3b0..040389d7f05cff901f4c058383a75139b75a97dd 100644 (file)
@@ -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
-}
index 1e72a8f77841a71c6f2034eca9e797571b8797a0..435e050c3b5008a342c1bef377a3490ff924a351 100644 (file)
@@ -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
+}
index 9d634f18ec93788a1c71290ce5244d12bd6538f0..2a4f7a9ae67c2a1ed9f3c60c1dffc7376b958fb8 100644 (file)
@@ -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
+}
index 79c7ec1a4b48319fe696b7da75555f260bf68068..0900c57b3483f5c41f6498d8921dd52704f02d7d 100644 (file)
@@ -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
index 7f6c5a4776a2e6c90ca4d585f4eb96ed110dfb64..a21bad71cf123e405009757720dffe99e84a3bb4 100644 (file)
@@ -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
index 6407b9b6e4a72539a8456db54c2622de20929d68..e435ee71aa7b6897ac08bee908907794a9b21748 100644 (file)
@@ -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
+}
index 9f7ae5e5f7b7b683b5d8099f57f19dbca0b3089b..4c92d381c9bc6444a372eafe2cc1e46ac4552d2b 100644 (file)
@@ -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
+}
index 6879ef65ae15a9cf32c94977fa73c219bad14432..c8dee0de4389c100e741fab6eeebd966f061da6b 100644 (file)
@@ -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
+}