[GRADLE-123] Errormessage for circular project dependencies should be improved Created: 24/Jun/08  Updated: 04/Jan/13  Resolved: 23/Jun/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.2
Fix Version/s: None

Type: Bug
Reporter: Hans Dockter Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

From Ittay Dror's mail:

While trying to fix the abdera gradle file I mistakenly created a
dependency of a project on itself
project(':extensions:html') {
dependencies.compile project(':client'), project(':core'),
project(':parser'), project(':extensions:html'), HTML_PARSER
}

The error I got is very unfriendly:
Build aborted anormally. Run with -s option to get stacktrace. Run with
-d option to get all debug info including stacktrace. Run (additionally)
with -f option to get the full (very verbose) stacktrace
Exception: org.gradle.api.CircularReferenceException: Can't establish
dependency :extensions:html:compile ==> :extensions:html:uploadLibs

I think this should not be an exception but a report about the wrong
dependency, maybe listing the dependencies in the circle and where they
came from.

(and tiny correction: anormally -> abnormally)


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