The following hack seems to work:
import org.apache.ivy.core.settings.IvySettings
import org.apache.ivy.core.module.descriptor.ModuleDescriptor
import org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser
dependencies {
IvySettings ivySettings = new IvySettings()
ivySettings.load(new File('T:/Build/IvyRep/ivysettings.xml'))
classpathResolvers.add(ivySettings.defaultResolver)
File ivyFile = new File(projectDir, 'ivy.xml')
ModuleDescriptor md =
XmlModuleDescriptorParser.getInstance().parseDescriptor(ivySettings,
ivyFile.toURL(), false)
dependencyDescriptors(md.getDependencies());
}
Hans,
When can we expect a gradle version that contains the GRADLE-197
improvement?
Thanks
--
View this message in context:
http://www.nabble.com/configuring-gradle-from-ivysettings.xml---tp19212832p22701119.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