[GRADLE-415] Use patched ivy with Fix for IVY-1066 (was: -tests.jar dependency download failing) Created: 26/Feb/09  Updated: 04/Jan/13  Resolved: 16/Jul/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.5.2
Fix Version/s: 0.7

Type: Bug
Reporter: Galder ZamarreƱo Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

If I add the following dependency to my build.gradle file:

testCompile "org.jboss.test:jboss-test:1.1.3.GA"

I get this error when doing "gradle eclipse":

:eclipseCp
:: problems summary ::
:::: WARNINGS
[NOT FOUND ] org.jboss.jbossas#jboss-as-j2se;5.0.0.CR2!jboss-as-j2se.test-jar (463ms)

==== jboss: tried

http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2.test-jar

My .gradle/cache/org.jboss.jbossas/jboss-as-jmx/ivy-5.0.0.CR2.xml shows the following:

<dependency org="org.jboss.jbossas" name="jboss-as-j2se" rev="5.0.0.CR2" force="true" conf="compile->compile,master;runtime->runtime">
<artifact name="jboss-as-j2se" type="test-jar" ext="test-jar" conf=""/>
</dependency>

This should instead look like this instead:

<dependency org="org.jboss.jbossas" name="jboss-as-j2se" rev="5.0.0.CR2" force="true" conf="compile->compile,master;runtime->runtime">
<artifact name="jboss-as-j2se" type="test-jar" ext="jar" conf="tests" m:classifier="tests"/>
</dependency>

So that it downloads:

http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2-tests.jar

Instead of trying to download:

http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2.test-jar

This looks to be a bug of some sort but not sure. Can you confirm? Is it Gradle bug or Ivy one?



 Comments   
Comment by Hans Dockter [ 16/Apr/09 ]

This turns out to be an ivy bug. I know that I have said in the mailing list that this looks like a Gradle bug. I can't remember why I have said this. Anyway, I was wrong. I have filed an Ivy Jira: https://issues.apache.org/jira/browse/IVY-1066

It would be cool if you could confirm in this Jira, that the Maven dependency resolution works for this dependency.

Comment by Hans Dockter [ 17/Apr/09 ]

The Ivy guys have already fixed it in trunk. That was really fast. I have given the trunk snapshot a try together with Gradle, and the above dependency is now successfully downloaded. Therefore I reopen the issue now.

Comment by Hans Dockter [ 17/Apr/09 ]

This fix might become part of the Ivy 2.1 release stream. I will wait for this decision by the Ivy team. As soon as this fix is part of the 2.1 stream, I will add a 2.1-SNAPSHOT in Gradle. I'd rather avoid to use an Ivy trunk snapshot (although the Ivy trunk quality is usually good).

Comment by Hans Dockter [ 20/May/09 ]

Unfortunately Ivy hasn't merged their fix into the 2.1 branch yet. We don't want to ship Gradle 0.6 with a Ivy snapshot from trunk. Therefore we postpone the fix to 0.6.1.

Comment by Hans Dockter [ 02/Jun/09 ]

Ivy has still not ported the fix to the 2.1 stream. Therefore we postpone this issue to 0.7.

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