[GRADLE-2285] Dependency with package type 'orbit' should be interpreted as a jar Created: 09/May/12 Updated: 04/Jan/13 Resolved: 27/Jun/12
When gradle resolves dependencies of dropwizard-core ('com.yammer.dropwizard:dropwizard-core:0.4.0'), one of the transitive dependencies is 'org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016' whose artifact type is 'orbit'. Since the artifact type is 'orbit', gradle does not interpret this as a 'jar' packaging type and shows up an error. I do not have the same problem when resolving the dependency with maven.
Similar issues have been raised in jetty (http://jira.codehaus.org/browse/JETTY-1493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs) and ivy (https://issues.apache.org/jira/browse/IVY-899?page=com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel#issue-tabs) for this.
I have been digging around in Ivy to see the code change that was made for a similar problem (IVY-899). The change in Ivy is in /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorBuilder.java and the corresponding change in Gradle should be in gradle/subprojects/core-impl/src/main/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradlePomModuleDescriptorBuilder.java
I have identified the fix and will be issuing a pull request as soon as I get some time to make the change and test it out.
|Comment by Eirik Lygre [ 16/Jun/12 ]|
This is also a duplicate of
|Comment by Daz DeBoer [ 27/Jun/12 ]|
|Comment by Vijay Nagpal [ 13/Jul/12 ]|
Here are the package types that Ivy currently interprets as a jar:
Here is what Gradle interprets as a jar:
As part of this bug fix, I am adding 'orbit' packaging type to be interpreted as a jar.
Should I also add the remaining package types that Ivy interprets as jars (i.e. jbi-component and jbi-shared-library)?
BTW: The extra package types (jbi*) were added into Ivy as part of https://issues.apache.org/jira/browse/IVY-899
|Comment by Daz DeBoer [ 16/Jul/12 ]|
Thanks for the feedback.