On Oct 20, 2008, at 11:42 AM, Marcus Better wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
this is my first attempt at Gradle so I probably made some stupid
error, but I cannot get Gradle to resolve transitive dependencies
from the Maven repository. Only the primary dependency is
downloaded. Here is the build script:
usePlugin('java')
sourceCompatibility = 1.5
targetCompatibility = 1.5
group='org.example'
version = 0.1
dependencies {
addMavenRepo()
compile 'org.springframework:spring-context:2.5.5'
}
I believe this should pull with it a bunch of other Spring modules,
but that doesn't seem to happen. I have to include them manually.
This is a feature. Gradle considers it as best practices that
transitive dependencies are not included in the compile classpath,
only in the runtime classpath. The 'compile' configuration is not
transitive, the runtime configuration (which extends compile) is. See
http://gradle.org/userguide/latest/masterch12.html#x35-7200012.1 for
why we think this is a good idea (although you can change this
behavior).
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email