cyclonedx-gradle-plugin
cyclonedx-gradle-plugin copied to clipboard
Could the plugin write the components in a sorted order?
Problem
The JSON/XML CycloneDx SBOM write the components just like they are in the source set. From a user perspective I would like to commit the generated SBOM and see the changes in my Git history.
Proposal
Ordering the components by there PURL is quite helpful since changes in the metadata will not effect output. Maybe an optional task input to could enable the sorting.
cyclonedxBom {
// includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration)
includeConfigs += ["runtimeClasspath"]
// persist the components in the output SBOM ordered by there PURL
ordered = true
}