[GRADLE-1934] Multiple classifiers in Maven dependency ignored Created: 16/Nov/11 Updated: 04/Jan/13 Resolved: 02/Feb/12 | 
|
| Status: | Resolved | 
| Project: | Gradle | 
| Affects Version/s: | 1.0-milestone-7 | 
| Fix Version/s: | 1.0-milestone-8 | 
| Type: | Bug | ||
| Reporter: | MikeN | Assignee: | Unassigned | 
| Resolution: | Fixed | Votes: | 0 | 
| Description | 
| 
 If a Maven dependency has multiple dependencies with the same group/artifact name, but a different classifier, like http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.pom then only one jar is included.   | 
| Comments | 
| Comment by Daz DeBoer [ 02/Feb/12 ] | 
| 
 This seems to be working in Milestone8. The following project: 
configurations { compile }
repositories {
    mavenCentral()
}
dependencies {
    compile "com.google.gwt:gwt-user:2.4.0"
}
task show << {
    configurations.compile.each {
        println it.name
    }
}
gives the output :show Download http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.pom Download http://repo1.maven.org/maven2/com/google/gwt/gwt/2.4.0/gwt-2.4.0.pom Download http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/4/oss-parent-4.pom Download http://repo1.maven.org/maven2/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.pom Download http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar Download http://repo1.maven.org/maven2/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar Download http://repo1.maven.org/maven2/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar gwt-user-2.4.0.jar validation-api-1.0.0.GA-sources.jar validation-api-1.0.0.GA.jar BUILD SUCCESSFUL Total time: 40.366 secs Note that both the GA.jar and GA-sources.jar are included in the compile configuration.  |