After posting this question I found an answer that works for my current
configuration (A->B-extC) (NOT PRETTY AT ALL):
task deps << {
println 'direct deps artifacts:'
configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.moduleArtifacts.each
{
println it.file
}
println 'all deps artifacts:'
configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.allModuleArtifacts.each
{
println it.file
}
}
But this is not exactly what I want.
I'd like to get all artifacts that are part of this build (either direct or
indirect, but exclude artifacts that are external to this build). Using
DependencySpecs.type(PROJECT) does not work, because it gives me only direct
dependency that is later resolved to all artifacts, both internal and
external.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Get-all-direct-dependencies-artifacts-tp4328817p4328844.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