Open tkrah opened 1 month ago
Hi @tkrah Is it possible to provide the full build.gradle that caused this issue?
I have encountered a similar issue (infinite loop) recently. The scenario was a dependency graph which contained a loop between non-jar dependencies. I suspect the same might be happening here, but I would need to understand what dependencies are declared.
Hi @tkrah Is it possible to provide the full build.gradle that caused this issue?
I have encountered a similar issue (infinite loop) recently. The scenario was a dependency graph which contained a loop between non-jar dependencies. I suspect the same might be happening here, but I would need to understand what dependencies are declared.
Hi @tkrah. Thanks for sending the full configuration. I have tried it out and as expected it is a loop between non-jar dependencies. More specifically it is the bom org.springframework:spring-framework-bom:6.1.14
that has itself as a dependency. You can easily see this when you run the dependencies
gradle task.
Note that the PR #532 is aiming to resolve a lot of existing issue including this one. I have tested it out and it works fine with those changes.
Hi @tkrah. Thanks for sending the full configuration. I have tried it out and as expected it is a loop between non-jar dependencies. More specifically it is the bom
org.springframework:spring-framework-bom:6.1.14
that has itself as a dependency. You can easily see this when you run thedependencies
gradle task.Note that the PR #532 is aiming to resolve a lot of existing issue including this one. I have tested it out and it works fine with those changes.
Yeah I knew it had to be this one, because the workaround was to let the alignment rule exclude this bom - thanks for confirming and I am looking forward to #532 .
Run the task and it will just loop on:
To Reproduce Use this alignment rule to fix some dependencies:
gradle dependencies --configuration productionRuntimeClasspath
does run without a problem, resulting in the correct dependencies.
A workaround which seems to "break" the loop is this:
Expected behavior
gradle cyclonedxBom
should not loop endlessly.Environment cyclonedx = { id = 'org.cyclonedx.bom', version = "1.8.2" } - we can't use 1.9.x yet because of https://github.com/CycloneDX/cyclonedx-gradle-plugin/issues/482