Hi Helmut,
On Oct 28, 2008, at 11:30 AM, Helmut Denk wrote:
hi gradle-users,
how can i set 'dual' and 'returnFirst' Attributes
for a resolver-chain in my build.gradle ?
<resolvers>
<chain name="default-resolver" dual="false" returnFirst="true">
<resolver ref="local"/>
<resolver ref="shared"/>
<resolver ref="snapshot"/>
<resolver ref="released"/>
<resolver ref="thirdparty"/>
</chain>
</resolvers>
i tried:
project.getDependencies().setChainConfigurer {
...
}
but was not successful.
Sorry for the late answer. I don't know why the chainConfigurer
doesn't work. We have thrown this property out of trunk recently
anyway. Adam has committed a consistent mechanism for custom post-
processing of ivy objects created by Gradle.
The SettingsConverter and the ModuleDescriptorConverter are now
accessible via the dependency manager. Both offer a method called
addIvyTransformer(). You can pass a closure to this method which gets
applied against the IvySettings and ModuleDescriptor object created
by the converters. This stuff is committed but we might change the
semantic of how the closure is applied. Dependencies and
Configuration objects also have such an addIvyTransformer method.
For your problem this means that you will have an IvySettings object
at hand which you can modify.
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email