Hi,
I am trying to migrate an existing ivy+ant based build to gradle.
In this context I would like to know how I can make the compile
configuration transitive as it would ease the migration.
I promise to enforce the Gradle best practice of a transitive-free compile
configuration at a later stage though :-)
Thanks a lot, Holger
hdockter wrote:
>
>
> 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
>
>
>
>
--
View this message in context:
http://www.nabble.com/transitive-dependencies-not-resolved-tp20066361p20111080.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email