I have just added the capability to add dynamic metadata to dependencies.
Have a look here for a script snippet how this can work:
http://pastebin.com/8kP2FiFq
The Eclipse plugin could make use of that to allow the user to customize
eclipse metadata generation in a declarative way.
It would be cool if the Eclipse plugin would provide a couple of more hooks
(like for the Maven Pom generation).
eclipse.whenConfigured { metadata ->
}
eclipse.withXml { xml ->
}
That way the user can further customize the generated files. Either by
modifying an Eclipse plugin object that is the source for the xml
generation. As a last back up it would be also be possible to modify the
XML. See the DefaultMavenPom object on how we do this for pom generation.
- Hans
--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleorg
CEO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz