I need to take all third party artefacts from multi-project and copy to one
folder to use them with IDE afterthen. This means I don`t need compilation
or anything else there. From APIs I found that this should work:
configurations {
compile
localArchives.extendsFrom (compile)
localArchives.exclude(group: 'my.company.group') 
}

However, when calling localArchives.allDependencies from some task gradle
still tries to resolve internal modules from repository so exclude is
ignored. For now I have dirty hack:
project.configurations {
            compileLib
            compile.extendsFrom (compileLib)
            testCompileLib
            testCompile.extendsFrom (testCompileLib)
            localArchives.extendsFrom (compileLib, testCompileLib)
        }

Please help me to make it good looking with only one additional
configuration or none at all.
-- 
View this message in context: 
http://old.nabble.com/How-to-get-only-third-party-libs-from-dependencies-tp26588195p26588195.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