Dragut Razvan wrote:
> 
> 
> However, gradle complains that there's no method signature
> addDependency(..... , .....) in DefaultDependencyManager. I had a look at
> the source and indeed there's no such method there.
> I've tried some other ways around with the "dependencies" object but I
> failed with those attempts as well.
> 

see
http://www.nabble.com/Dependency-to-a-module-configuration--to19990983.html

Basically you can do it like this:

    DefaultDependencyDescriptor dd(String conf, String descr) {
        String[] parts = descr.split(":");
        DefaultDependencyDescriptor dd = new DefaultDependencyDescriptor(
                new ModuleRevisionId(new ModuleId(parts[0], parts[1]),
parts[2]), false, false)
        return dd
    }

    dependencies {
        ...
        dependencyDescriptors.add dd("compile", "org.apache.cxf:cxf:2.0.6")
        ...


-- 
View this message in context: 
http://www.nabble.com/Move-dependencies-to-separate-file-tp20363163p20363637.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


Reply via email to