On 10/05/2013, at 8:26 AM, Kyle Mahan <kyle.ma...@gmail.com> wrote: > 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
I've not really been across this issue, but we do have the start of a spec for this: https://github.com/gradle/gradle/blob/master/design-docs/duplicate-entries-in-archives.md Thanks for your interest. Hopefully this gets the ball rolling again. -- Luke Daley Principal Engineer, Gradleware http://gradleware.com Join me at the Gradle Summit 2013, June 13th and 14th in Santa Clara, CA: http://www.gradlesummit.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email