On 4/02/10 11:49 PM, Peter Ledbrook wrote:
Hi,

I have a plugin that is creating its own 'compile' configuration. The
project using the plugin includes a couple of Grails dependencies for
that configuration. Now, when running the build with -i, I see these
transitive dependencies resolved by Ivy (among others):

     found org.springframework#spring-jms;3.0.0.RELEASE in MavenRepo
     found org.springframework#spring-orm;3.0.0.RELEASE in MavenRepo
     found org.springframework#spring-oxm;3.0.0.RELEASE in MavenRepo
     found org.springframework#spring-web;3.0.0.RELEASE in MavenRepo
     found org.springframework#spring-webmvc;3.0.0.RELEASE in MavenRepo

However, when I then I try to access the dependency files using this code:

   project.logger.info "Compile classpath:\n
${project.configurations.compile.files.join('\n  ')}"

I see this in the output:

   
~/.gradle/cache/org.springframework/spring-orm/jars/spring-orm-3.0.0.RELEASE.jar
   
~/.gradle/cache/org.springframework/spring-tx/jars/spring-tx-3.0.0.RELEASE.jar
   
~/.gradle/cache/org.springframework/spring-jdbc/jars/spring-jdbc-3.0.0.RELEASE.jar
   
~/.gradle/cache/org.springframework/spring-oxm/jars/spring-oxm-3.0.0.RELEASE.jar
   
~/.gradle/cache/org.springframework/spring-context-support/jars/spring-context-support-3.0.0.RELEASE.jar
   
~/.gradle/cache/org.springframework/spring-instrument/jars/spring-instrument-3.0.0.RELEASE.jar

oxm and orm are there, but spring-web and spring-jms are not. They're
all transitive dependencies. Any idea why those two are missing?

The compile configuration does not include transitive dependencies by default.


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to