I'm interested in helping out on this issue if possible: http://issues.gradle.org/browse/GRADLE-2171 ("Add an option to avoid duplicate entries when creating a zip file"). This comes up assembling a fat jar containing all of an application's dependencies smushed together in one jar (a lot of jars tend to have eg, META-INF/LICENSE).
>From what I could tell, it was still an open question whether to support the Ant configuration options "add"/"preserve"/"fail", and what the default should be. Ant defaults to "preserve", which will put multiple files with the same name in the zip. I assume the vast majority (all?) of cases would want one of the other two behaviors: either a) skip duplicates or b) throw an exception. Personally I'd be ok with (a) only. In case it helps the discussion, here's my "sketch" of a feature to skip duplicates. https://github.com/kylewm/gradle/commit/34bfcd06e16fc3124627668d69ea1533d5f1c048 - Kyle PS I'm coming back to Gradle after a brief foray a couple of years ago, just before 1.0, and it is awesome! Particular congratulations on the excellent documentation :)