mirror of https://github.com/apache/poi.git
cyclonedx per module
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b295d644b
commit
b8d4597ea4
24
build.gradle
24
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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -179,4 +179,23 @@ publishing {
|
|||
spotbugsTest.enabled = false
|
||||
spotbugsMain.enabled = false
|
||||
javadoc.enabled = false
|
||||
javadocJar.enabled = false
|
||||
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
|
||||
}
|
|
@ -166,4 +166,23 @@ sourcesJar {
|
|||
spotbugsTest.enabled = false
|
||||
spotbugsMain.enabled = false
|
||||
javadoc.enabled = false
|
||||
javadocJar.enabled = false
|
||||
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
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue