is there any straightforward way to get hold of the Ivy module descriptor (ivy.xml file) of a dependency using Gradle?
I know how to grab a ResolvedDependency and from there also all artifacts. But the module descriptor itself is not among them (which you might or might not expect), also I don’t see a method to access it directly. (Tried Gradle 1.6 and looked up the documentation for 1.7-rc-2.)
I could try to fallback to using Ivy itself, but you are hiding Ivy pretty well. Also I don’t want to replace Gradle’s dependency resolution by Ivy, nor do I want to use two dependency management systems in the same build.
Any directions on how to solve this?
Our use case is the following:
Since the format of Ivy module descriptors is easily extensible (you can add extra elements and attributes) we use module descriptors to store additional meta data for our modules. During build I need access to the meta data of its dependencies.
(I’m not sure if this is even Ivy specific, its more a general requirement to get hold of the meta data - if any. I could imagine use cases for requiring to read the pom.xml of a dependency as well.)
Thank you, Tim