This is an automated email from the ASF dual-hosted git repository.

bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant-antlibs-props.git


The following commit(s) were added to refs/heads/master by this push:
     new 9654004  CycloneDX Spec prefers .cdx.json
9654004 is described below

commit 96540041ea3a92cf3f9a21c4edcb8581c40e2cbd
Author: Stefan Bodewig <[email protected]>
AuthorDate: Fri Jun 19 21:40:04 2026 +0200

    CycloneDX Spec prefers .cdx.json
    
    https://cyclonedx.org/specification/overview/#recognized-file-patterns
---
 cyclonedx.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cyclonedx.xml b/cyclonedx.xml
index 473ac52..4ae4784 100644
--- a/cyclonedx.xml
+++ b/cyclonedx.xml
@@ -38,7 +38,7 @@ under the License.
   <target name="create-antlib-sbom"
           
depends="define-cyclonedx-components,antlib,define-core-ant-components">
     <uptodate property="antlib-sbom-ok"
-              targetfile="${build.lib}/${artifact.stub}-cyclonedx.json">
+              targetfile="${build.lib}/${artifact.stub}.cdx.json">
       <srcresources>
         <file file="${jarname}"/>
         <file file="ivy.xml"/>
@@ -46,7 +46,7 @@ under the License.
       </srcresources>
     </uptodate>
     <cdx:componentbom
-        bomName="${artifact.stub}-cyclonedx"
+        bomName="${artifact.stub}.cdx"
         outputdirectory="${build.lib}"
         format="all"
         useComponentSupplier="true"
@@ -95,7 +95,7 @@ under the License.
       <sequential
         xmlns:cdx="antlib:org.apache.ant.cyclonedx">
         <cdx:componentbom
-            bomName="@{archiveName}.cyclonedx"
+            bomName="@{archiveName}.cdx"
             outputdirectory="@{outputDirectory}"
             format="@{format}"
             useComponentManufacturer="@{useComponentManufacturer}"
@@ -213,7 +213,7 @@ under the License.
         binarysource="Binary Distribution">
       <component>
         <sbomLink>
-          <file file="${bin.dist.dir}/${artifact.stub}-cyclonedx.json"/>
+          <file file="${bin.dist.dir}/${artifact.stub}.cdx.json"/>
         </sbomLink>
         <file file="${bin.dist.dir}/${artifact.stub}.jar"/>
       </component>

Reply via email to