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
http://www.nabble.com/Dependency-to-a-module-configuration--to19990983.html 
-- 
View this message in context: 
http://www.nabble.com/how-to-express-configuration-mapping----tp20118174p20125168.html
Sent from the gradle-user mailing list archive at Nabble.com.

Reply via email to