CycloneDX Spec prefers .cdx.json

https://cyclonedx.org/specification/overview/#recognized-file-patterns
This commit is contained in:
Stefan Bodewig 2026-06-19 21:35:31 +02:00
parent 3b1b4e4237
commit 65a5c52cec
No known key found for this signature in database
GPG Key ID: 23738DFD7C40DE43
1 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ under the License.
<target name="create-antlib-sbom" depends="define-cyclonedx-components,antlib">
<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"/>
@ -45,7 +45,7 @@ under the License.
</srcresources>
</uptodate>
<cdx:componentbom
bomName="${artifact.stub}-cyclonedx"
bomName="${artifact.stub}.cdx"
outputdirectory="${build.lib}"
format="all"
useComponentSupplier="true"
@ -125,7 +125,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}"
@ -243,7 +243,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>