On Jul 8, 2008, at 3:55 AM, Allan Lewis wrote:


The ivy.xml sheds some light on this:

<dependency org="org.springframework" name="spring" rev="2.5.4"
transitive="false" conf="compile->default">
        <artifact name="spring" type="jar" ext="jar" conf=""/>
</dependency>

How do I get the transitive flag set to 'true'?


The transitive setting is contained in an Ivy configuration object. We don't usually recommend to change this setting. The Ivy configuration objects are immutable objects so you have to assign them anew:

dependencies {
   addConfiguration(
new Configuration(JavaPlugin.COMPILE, Visibility.PRIVATE, null, null, true, null));
}

This is not very nice. We plan to provide convenience methods soon, like: configuration('compile', transitive: true), where we under the hood create a new Configuration object which use the settings of the old one as default and overwrite only the declared ones from the map: http://jira.codehaus.org/browse/GRADLE-149

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





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

   http://xircles.codehaus.org/manage_email


Reply via email to