You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey 👋, I was testing the Gradle plugin and found that the plugin does not create an aggregate of all direct and transitive dependencies of a project. In this case, the resulting BOM reflects the dep tree of a random configuration (the last configuration that was looped). This applies also for the usage of --init-script
Different configurations are not merged together, the resulting BOM contains just the transitives of a single random configuration.
Look at bom.json, the "pkg:maven/org.apache.kafka/[email protected]?type=jar" has no "dependsOn" at this moment:
Run gradle clean
Run gradle cyclonedxBom -info
The output of bom.json might have changed, including the transitives for the "pkg:maven/org.apache.kafka/[email protected]?type=jar", if not, repeat Step 5 and 6
Expecting result:
The gradle cyclonedxBom should produce the same output every time, an output that would merge all the dep trees resolved by all configurations (Ran gradle dependencies -q to get all the configs and their trees)
I am also looking to solve this issue, if you have any tips or idea that might help me, please let me know.
Gradle Version 7.6.3
Java Version 17.0.9
The text was updated successfully, but these errors were encountered:
Hey 👋, I was testing the Gradle plugin and found that the plugin does not create an aggregate of all direct and transitive dependencies of a project. In this case, the resulting BOM reflects the dep tree of a random configuration (the last configuration that was looped). This applies also for the usage of
--init-script
Different configurations are not merged together, the resulting BOM contains just the transitives of a single random configuration.
How to replicate:
Clone locally this boilerplate
Run
cd lib
Look at bom.json, the "pkg:maven/org.apache.kafka/[email protected]?type=jar" has no "dependsOn" at this moment:
![Screenshot 2023-11-20 at 16 32 33](https://private-user-images.githubusercontent.com/136596702/284301809-571ca9ba-2682-4e66-9b9f-163accf11556.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTEwODMsIm5iZiI6MTczOTMxMDc4MywicGF0aCI6Ii8xMzY1OTY3MDIvMjg0MzAxODA5LTU3MWNhOWJhLTI2ODItNGU2Ni05YjlmLTE2M2FjY2YxMTU1Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMTUzMDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMGU0ODE2OTUwYmE5YmM3MWJiMjgwOWU0NGY1MjBhM2U1YWU0YTA4NTg3ZDVmOTU5OWViYmZkZDhmZmNhMzlmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.oHCem0QXi9nktMKS4s9R4Z3Qj6Fvq5Mw4nF3UKlIAXw)
Run
gradle clean
Run
gradle cyclonedxBom -info
The output of bom.json might have changed, including the transitives for the "pkg:maven/org.apache.kafka/[email protected]?type=jar", if not, repeat Step 5 and 6
![Screenshot 2023-11-20 at 16 38 05](https://private-user-images.githubusercontent.com/136596702/284301690-8dbabe00-8971-47f9-bfe3-2c5ae1f5202a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTEwODMsIm5iZiI6MTczOTMxMDc4MywicGF0aCI6Ii8xMzY1OTY3MDIvMjg0MzAxNjkwLThkYmFiZTAwLTg5NzEtNDdmOS1iZmUzLTJjNWFlMWY1MjAyYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMTUzMDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jODU0OGU4YWQzNTg5NTM0OWEwMDVlZTc4MzBkM2NmM2M5MDg5N2Y2NGI4MGEyN2Y4YzJkMDY4OGNiZGMwMjBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.8WZmnHwLwDZYWhA9Fx2I0pjjY9w4d5JCDeu57GE5rh4)
Expecting result:
The
gradle cyclonedxBom
should produce the same output every time, an output that would merge all the dep trees resolved by all configurations (Rangradle dependencies -q
to get all the configs and their trees)I am also looking to solve this issue, if you have any tips or idea that might help me, please let me know.
Gradle Version 7.6.3
Java Version 17.0.9
The text was updated successfully, but these errors were encountered: