Browse Source

support building cyclonedx bom

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903831 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_3
PJ Fanning 1 year ago
parent
commit
aeb8c3f2c6
1 changed files with 24 additions and 1 deletions
  1. 24
    1
      build.gradle

+ 24
- 1
build.gradle View File

id "com.github.spotbugs" version '5.0.10' id "com.github.spotbugs" version '5.0.10'
id 'de.thetaphi.forbiddenapis' version '3.3' id 'de.thetaphi.forbiddenapis' version '3.3'
id 'com.github.jk1.dependency-license-report' version '2.0' id 'com.github.jk1.dependency-license-report' version '2.0'
id 'org.cyclonedx.bom' version '1.7.1'
} }


repositories { repositories {
} }
wrapper.finalizedBy adjustWrapperPropertiesFile wrapper.finalizedBy adjustWrapperPropertiesFile


group = 'org.apache.poi'

/** /**
Define properties for all projects, including this one Define properties for all projects, including this one
*/ */
allprojects { allprojects {
// apply plugin: 'eclipse' // apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'

version = '5.2.3-SNAPSHOT'
} }


/** /**
apply plugin: 'de.thetaphi.forbiddenapis' apply plugin: 'de.thetaphi.forbiddenapis'
apply plugin: 'com.github.spotbugs' apply plugin: 'com.github.spotbugs'


version = '5.2.3-SNAPSHOT'
ext { ext {
bouncyCastleVersion = '1.70' bouncyCastleVersion = '1.70'
commonsCodecVersion = '1.15' commonsCodecVersion = '1.15'
binDistTar.finalizedBy fixDistDir binDistTar.finalizedBy fixDistDir
srcDistZip.finalizedBy fixDistDir srcDistZip.finalizedBy fixDistDir
srcDistTar.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
}

Loading…
Cancel
Save