Skip to content

Commit

Permalink
replace maven.reproducible property with cdx:reproducible
Browse files Browse the repository at this point in the history
property introduced in CycloneDX/cyclonedx-property-taxonomy#70

Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
  • Loading branch information
hboutemy committed Sep 3, 2023
1 parent 47742b1 commit 52a4651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/it/makeBom/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assert !bomFileXml.text.contains('<property name="maven.optional.unused">')
// Reproducible Builds
assert !bomFileJson.text.contains('"serialNumber"')
assert !bomFileJson.text.contains('"timestamp"')
assert bomFileJson.text.contains('"name" : "maven.reproducible",')
assert bomFileJson.text.contains('"name" : "cdx:reproducible",')
assert bomFileJson.text.contains('"value" : "enabled"')

File bomAggregateFileXml = new File(basedir, "target/bom-makeAggregateBom.xml")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ private void generateBom(String analysis, Metadata metadata, List<Component> com
includeBomSerialNumber = false;
metadata.setTimestamp(null);
if (schemaVersion().getVersion() >= 1.3) {
metadata.addProperty(newProperty("maven.reproducible", "enabled"));
metadata.addProperty(newProperty("cdx:reproducible", "enabled"));
}
}

Expand Down

0 comments on commit 52a4651

Please sign in to comment.