Philip Crotwell wrote:
Hi
I just figured out an error in my build script relating to log4j and
transitive dependencies, basically I had
compile group: 'log4j', name: 'log4j', version: '1.2.15'
and when I ran gradle jar I got this:
Execution failed for task ':fissuresImpl:test'.
Cause: Could not resolve all dependencies for configuration 'testRuntime':
- download failed: javax.jms#jms;1.1!jms.jar
- download failed: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
- download failed: com.sun.jmx#jmxri;1.2.1!jmxri.jar
Very confusing as the jms, jmxtools and jmxri dependencies were
sneaking in as transitive dependencies of log4j (at least I think that
is what is happening). In trying to figure this out, I tried gradle
dependencyReport to see where the jms dependencies were coming from,
but it also died due with the same error. :(
In order to help find these "bad" transitive dependencies, it would be
really nice if the dependencyReport did not actually try to download
the jars. I would think that all the information needed to generate
the report would exist in either the build.gradle or perhaps poms and
ivy.xml files if using the remote repositories.
This is a good idea. Could you add a JIRA issue for this?
Also, I presume this is in Ivy, but it would be great if the "download
failed" message could show the transitive link instead of just the
jar, perhaps
- download failed: javax.jms#jms;1.1!jms.jar transitive from
log4j:log4j:1.2.15
That would really help in tracking down these types of errors.
This is also a good idea. This message is straight out of Ivy, but we
could probably do something to make the error message clearer. Could you
add a JIRA issue for this?
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email