On May 26, 2009, at 2:47 PM, DiedrikK wrote:
We are using an ivy.xml within Eclipse (+IvyDE plugin), and we want
Gradle to
pickup that file.
In Gradle 0.5.2 there was a simple way to load dependencies from an
existing
ivy.xml file.
dependencies {
dependencyDescriptors(
ivy.resolve(file('ivy.xml')).moduleDescriptor.dependencies
)
}
When using Gradle 0.6, the 'ivy' property is no longer available.
Is there any way to get hold of the Ivy instance that is being used
during
the Gradle build?
I've tried to use IvyContext.getContext().getIvy() but that call
returns a
new (default) Ivy instance.
Unfortunately there is no replacement for this feature. What has
changed with 0.6 is that we have created rich native domain objects
and pushed the Ivy object in a separate internal layer. The process is
not finished yet. What we need to do is to write our Ivy plugin which
translates an ivy.xml into the Gradle domain model. But work on this
hasn't started yet. See: http://jira.codehaus.org/browse/GRADLE-197
I'm really sorry about this. The only thing you can do is to loop
through the Ivy dependencies and create Gradle dependencies out of
them. Basically doing the job that the Ivy plugin is supposed to do in
the future.
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email