Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions gradle/bom.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@

apply plugin: 'org.cyclonedx.bom'

cyclonedxBom {
tasks.named('cyclonedxDirectBom') {
projectType = 'application'
schemaVersion = '1.4'
schemaVersion = 'VERSION_14'
Comment thread
jmendeza marked this conversation as resolved.
includeBomSerialNumber = true
includeLicenseText = false
outputFormat = 'json'
outputName = 'bom'
destination = layout.buildDirectory.get().asFile
skipConfigs = ['testRuntimeClasspath']
// Keep output at build/bom.json for aggregate-boms.sh
jsonOutput = layout.buildDirectory.file('bom.json')
xmlOutput.unsetConvention()
}

tasks.register('bomGenerate') {
group = 'build'
description = 'Generates CycloneDX BOM'
dependsOn tasks.named('cyclonedxBom')
dependsOn tasks.named('cyclonedxDirectBom')
}