[GRADLE-766] Circular dependency in maven repo causes infinite recursion Created: 06/Dec/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Luke Taylor Assignee: Adam Murdoch
Resolution: Fixed Votes: 0


 Description   

As discussed in the mailing list - with the current trunk, using the dependency org.apache.xmlgraphics:fop:0.95@jar leads to a recursive call to DefaultIvyReportConverter.getResolvedDependenciesForNode. Quoting Adam

"Looking at the poms, fop is declared as depending on batik-transcoder,
and batik-transcoder as depending on fop. Gradle doesn't seem to like
the cycle in the dependency graph. While it is arguably a bad idea to
have a cycle such as this, Gradle should still be able to deal with it."

java.lang.StackOverflowError: null
> at
> org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.getConfiguration(DefaultModuleDescriptor.java:404)
> [ivy-2.1.0-rc2.jar:2.1.0-rc2]
> at
> org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.getArtifacts(DefaultModuleDescriptor.java:442)
> [ivy-2.1.0-rc2.jar:2.1.0-rc2]
> at
> org.apache.ivy.core.resolve.IvyNode.getArtifacts(IvyNode.java:789)
> [ivy-2.1.0-rc2.jar:2.1.0-rc2]
> at
> org.apache.ivy.core.resolve.IvyNode.getSelectedArtifacts(IvyNode.java:740)
> [ivy-2.1.0-rc2.jar:2.1.0-rc2]
> at
> org.gradle.api.internal.artifacts.ivyservice.DefaultIvyReportConverter.getArtifacts(DefaultIvyReportConverter.java:279)
> [gradle-core-0.9-20091203145759+0000.jar:0.9-20091203145759+0000]
> at
> org.gradle.api.internal.artifacts.ivyservice.DefaultIvyReportConverter.createResolvedDependency(DefaultIvyReportConverter.java:265)
> [gradle-core-0.9-20091203145759+0000.jar:0.9-20091203145759+0000]
> at
> org.gradle.api.internal.artifacts.ivyservice.DefaultIvyReportConverter.getResolvedDependenciesForNode(DefaultIvyReportConverter.java:120)
> [gradle-core-0.9-20091203145759+0000.jar:0.9-20091203145759+0000]
> at



 Comments   
Comment by Steve Appling [ 19/Apr/10 ]

Would a fix for this also fix Gradle-715?

Comment by Adam Murdoch [ 19/Apr/10 ]

It helps with GRADLE-715, but there's another StackOverflowException in DefaultProjectDependency yet to be fixed

Comment by Adam Murdoch [ 19/Apr/10 ]

There are still some issues with using --dependencies when there is a circular dependency. Moving these to GRADLE-915

Comment by Steve Ebersole [ 09/Aug/10 ]

The idea plugin suffers the same problem : GRADLE-1099

Generated at Wed Jun 30 11:38:20 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.