Missing transitive dependencies after upgrading to 1.9-rc-1


(danigredler) #1

Using the following sample project:

apply plugin: 'java'
apply plugin: 'project-report'
  repositories {
    mavenCentral()
}
  dependencies {
    compile 'org.apache.camel:camel-spring:2.11.1'
    compile 'org.apache.camel:camel-http4:2.11.1'
}

Retrieving the dependencies using Gradle 1.8:

C:\work\sample>C:\java\gradle-1.8\bin\gradle.bat dependencies --configuration compile
:dependencies
  ------------------------------------------------------------
Root project
------------------------------------------------------------
  compile - Compile classpath for source set 'main'.
+--- org.apache.camel:camel-spring:2.11.1
|
  +--- org.apache.camel:camel-core:2.11.1
|
  |
  \--- org.slf4j:slf4j-api:1.6.6
|
  +--- org.springframework:spring-context:3.1.4.RELEASE
|
  |
  +--- org.springframework:spring-aop:3.1.4.RELEASE
|
  |
  |
  +--- aopalliance:aopalliance:1.0
|
  |
  |
  +--- org.springframework:spring-asm:3.1.4.RELEASE
|
  |
  |
  +--- org.springframework:spring-beans:3.1.4.RELEASE
|
  |
  |
  |
  \--- org.springframework:spring-core:3.1.4.RELEASE
|
  |
  |
  |
       +--- org.springframework:spring-asm:3.1.4.RELEASE
|
  |
  |
  |
       \--- commons-logging:commons-logging:1.1.1
|
  |
  |
  \--- org.springframework:spring-core:3.1.4.RELEASE (*)
|
  |
  +--- org.springframework:spring-beans:3.1.4.RELEASE (*)
|
  |
  +--- org.springframework:spring-core:3.1.4.RELEASE (*)
|
  |
  +--- org.springframework:spring-expression:3.1.4.RELEASE
|
  |
  |
  \--- org.springframework:spring-core:3.1.4.RELEASE (*)
|
  |
  \--- org.springframework:spring-asm:3.1.4.RELEASE
|
  +--- org.springframework:spring-aop:3.1.4.RELEASE (*)
|
  \--- org.springframework:spring-tx:3.1.4.RELEASE
|
       +--- aopalliance:aopalliance:1.0
|
       +--- org.springframework:spring-aop:3.1.4.RELEASE (*)
|
       +--- org.springframework:spring-beans:3.1.4.RELEASE (*)
|
       +--- org.springframework:spring-context:3.1.4.RELEASE (*)
|
       \--- org.springframework:spring-core:3.1.4.RELEASE (*)
\--- org.apache.camel:camel-http4:2.11.1
     +--- org.apache.camel:camel-core:2.11.1 (*)
     +--- org.apache.geronimo.specs:geronimo-servlet_2.5_spec:1.2
     \--- org.apache.httpcomponents:httpclient:4.2.5
          +--- org.apache.httpcomponents:httpcore:4.2.4
          +--- commons-logging:commons-logging:1.1.1
          \--- commons-codec:commons-codec:1.6
  (*) - dependencies omitted (listed previously)
  BUILD SUCCESSFUL
  Total time: 13.475 secs

Retrieving the dependencies in Gradle 1.9-rc-1:

C:\work\sample>C:\java\gradle-1.9-rc-1\bin\gradle.bat dependencies --configuration compile
:dependencies
  ------------------------------------------------------------
Root project
------------------------------------------------------------
  compile - Compile classpath for source set 'main'.
+--- org.apache.camel:camel-spring:2.11.1
|
  +--- org.springframework:spring-context:3.1.4.RELEASE
|
  |
  +--- org.springframework:spring-aop:3.1.4.RELEASE
|
  |
  |
  +--- aopalliance:aopalliance:1.0
|
  |
  |
  +--- org.springframework:spring-asm:3.1.4.RELEASE
|
  |
  |
  +--- org.springframework:spring-beans:3.1.4.RELEASE
|
  |
  |
  |
  \--- org.springframework:spring-core:3.1.4.RELEASE
|
  |
  |
  |
       +--- org.springframework:spring-asm:3.1.4.RELEASE
|
  |
  |
  |
       \--- commons-logging:commons-logging:1.1.1
|
  |
  |
  \--- org.springframework:spring-core:3.1.4.RELEASE (*)
|
  |
  +--- org.springframework:spring-beans:3.1.4.RELEASE (*)
|
  |
  +--- org.springframework:spring-core:3.1.4.RELEASE (*)
|
  |
  +--- org.springframework:spring-expression:3.1.4.RELEASE
|
  |
  |
  \--- org.springframework:spring-core:3.1.4.RELEASE (*)
|
  |
  \--- org.springframework:spring-asm:3.1.4.RELEASE
|
  +--- org.springframework:spring-aop:3.1.4.RELEASE (*)
|
  \--- org.springframework:spring-tx:3.1.4.RELEASE
|
       +--- aopalliance:aopalliance:1.0
|
       +--- org.springframework:spring-aop:3.1.4.RELEASE (*)
|
       +--- org.springframework:spring-beans:3.1.4.RELEASE (*)
|
       +--- org.springframework:spring-context:3.1.4.RELEASE (*)
|
       \--- org.springframework:spring-core:3.1.4.RELEASE (*)
\--- org.apache.camel:camel-http4:2.11.1
     +--- org.apache.camel:camel-core:2.11.1
     |
  \--- org.slf4j:slf4j-api:1.6.6
     \--- org.apache.geronimo.specs:geronimo-servlet_2.5_spec:1.2
  (*) - dependencies omitted (listed previously)
  BUILD SUCCESSFUL
  Total time: 3.779 secs

Gradle 1.9-rc-1 is missing the following transitive dependencies:

org.apache.camel:camel-spring:2.11.1 -> org.apache.camel:camel-core:2.11.1

org.apache.camel:camel-http4:2.11.1 -> org.apache.httpcomponents:httpclient:4.2.5