Hi to all.
I'm using the following task to copy all the JARs of external dependencies
to a folder:
task exportExtLibs(type: Copy) {
from { configurations.runtime.files { it instanceof ExternalDependency
} }
into extLibDir
}
I'm seeing that also transitive external JARs are copied, although Adam says
they should not. Am I missing something?
Another thing: I was not able to create a similar task to copy all the
corresponding source JARs for those external dependencies to another folder.
I tried the following:
task exportExtLibsSrc(type: Copy) {
from {
configurations.compile.resolvedConfiguration.resolvedArtifacts.find {
it.classifier == 'sources' }.collect{ it.url }
}
into extLibSrcDir
}
However, all the resolved artifacts have classifier == null (they are
actually pointing to the binary JARs). Looking at the APIs, I could not find
a way to get this information. Any help would be appreciated.
Mauro.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/collecting-only-external-dependency-files-tp5117615p5680602.html
Sent from the gradle-dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email