On Oct 23, 2008, at 8:38 AM, mvlcek wrote:
Currently you must use the ivy api, e.g. here with a helper
function: DefaultDependencyDescriptor dd(String conf, String descr,
List depConf = [ "default" ], boolean changing = false) { String[]
parts = descr.split(":"); DefaultDependencyDescriptor dd = new
DefaultDependencyDescriptor( new ModuleRevisionId
(new ModuleId(parts[0], parts[1]), parts[2]), false, changing)
depConf.each { dd.addDependencyConfiguration(conf, it) } return
dd } dependencies { ... dependencyDescriptors.add dd("compile",
"org.apache.cxf:cxf:2.0.6", [ "default", "jaxws", "spring",
"http" ]) compile "org.apache:commons-httpclient:3.+" ... For the
full discussion see http://www.nabble.com/Dependency-to-a-module-
configuration--to19990983.html
View this message in context: Re: how to express configuration
mapping ?
Sent from the gradle-user mailing list archive at Nabble.com.
we are trying to improve this very soon. Setting the dependency
configuration and the changing attribute in a convenient way will be
supported within the next days and will definitely be part of the
upcoming 0.5.
You may watch: http://jira.codehaus.org/browse/GRADLE-266
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email