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


The following commit(s) were added to refs/heads/main by this push:
     new 1776f93  change the default version when creating a reproducible 
version
1776f93 is described below

commit 1776f932fa4195ddb91d24e6e26c4a290fe7767f
Author: Stefan Bodewig <[email protected]>
AuthorDate: Fri Sep 25 19:46:44 2026 +0200

    change the default version when creating a reproducible version
---
 src/main/org/apache/ant/cyclonedx/ComponentBomTask.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java 
b/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java
index 9e04701..41d2f48 100644
--- a/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java
+++ b/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java
@@ -379,7 +379,7 @@ public class ComponentBomTask extends Task {
         if (componentId == null) {
             componentId = component.getName()
                 + ":" + (component.getGroup() == null ? "group" : 
component.getGroup())
-                + ":" + (component.getVersion() == null ? "group" : 
component.getVersion());
+                + ":" + (component.getVersion() == null ? "version" : 
component.getVersion());
         }
         byte[] componentIdHash = digest(componentId);
         long clockseq = ((long)(componentIdHash[0] & 0x3F) << 56) | 
((long)(componentIdHash[1] & 0xFF) << 48);

Reply via email to