On 21/01/2011, at 3:03 AM, Matthias wrote:
> Hi,
>
> I'm currently working on the gradle-android-plugin, and I'm at a point
> where I need a hand from a more experienced Gradle user.
>
> What we need to do is add all runtime dependencies of an Android application
> to the invocation of the dexer (the tool that converts Java byte code to
> Dalvik
> byte code). What we did is this:
>
>
> apply(executable: ant.dx, ...) {
> ...
> project.configurations.runtime.each { fileset file: it }
>
> }
>
> the problem with that is that this fileset includes all transitive
> dependencies, including duplicates that e.g. differ just in their version.
> According to the docs,
> Gradle at some point turns a configuration into a resolvedConfiguration
> if I understand correctly. Would this include resolving JAR conflicts?
Yes it does. Do you have some particular examples of the JARs it is duplicating?
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz