This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/ant-antlibs-cyclonedx.git
commit 553679436d69d11285bd55b0bce569045727a7a3 Author: Stefan Bodewig <[email protected]> AuthorDate: Fri May 22 23:17:42 2026 +0200 only re-generate SBOM when anything has changed --- build.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.xml b/build.xml index 5c0cfed..eba2d9a 100644 --- a/build.xml +++ b/build.xml @@ -109,11 +109,21 @@ under the License. </target> <target name="create-antlib-sbom" depends="define-cyclonedx-components"> + <uptodate property="antlib-sbom-ok" + targetfile="${build.lib}/${artifact.stub}-cyclonedx.json"> + <srcresources> + <file file="${jarname}"/> + <file file="ivy.xml"/> + <file file="build.xml"/> + </srcresources> + </uptodate> <cdx:componentbom bomName="${artifact.stub}-cyclonedx" outputdirectory="${build.lib}" format="all" useComponentSupplier="true" + unless:set="antlib-sbom-ok" + xmlns:unless="ant:unless" xmlns:cdx="antlib:org.apache.ant.cyclonedx"> <component name="${artifact.name}"
