From 71c467e09673bee17174006af2d79c735122d78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Sun, 3 Sep 2023 22:48:07 +0200 Subject: [PATCH] replace maven.reproducible property with cdx:reproducible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit property introduced in https://github.com/CycloneDX/cyclonedx-property-taxonomy/pull/70 Signed-off-by: Hervé Boutemy --- src/it/makeBom/verify.groovy | 2 +- src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/it/makeBom/verify.groovy b/src/it/makeBom/verify.groovy index 6e5c585b..28f59f0e 100644 --- a/src/it/makeBom/verify.groovy +++ b/src/it/makeBom/verify.groovy @@ -11,7 +11,7 @@ assert !bomFileXml.text.contains('') // 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") diff --git a/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java b/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java index 2797e243..9e7f4c7f 100644 --- a/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java +++ b/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java @@ -322,7 +322,7 @@ private void generateBom(String analysis, Metadata metadata, List com includeBomSerialNumber = false; metadata.setTimestamp(null); if (schemaVersion().getVersion() >= 1.3) { - metadata.addProperty(newProperty("maven.reproducible", "enabled")); + metadata.addProperty(newProperty("cdx:reproducible", "enabled")); } }