On 22/06/2013, at 4:32 AM, Xavier Ducrohet <x...@google.com> wrote: > We'd like to be able to create repeatable jar files, where the content of the > files inside the jar files is the only thing that matter. > Unfortunately the zip/jar file format also includes a timestamp which makes > comparing jar file complicated (and throws off git when you check in > prebuilts) > > I had hoped I could do > > jar { > eachFile { details -> > details.lastModified = 0 > } > } > > However lastModified is read-only. > > I tracked the code down to MappingCopySpecVisitor$FileVisitDetailsImpl. I'm > wondering if you'd accept a contribution that would allow overriding this.
I think so. -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com