Skip to content

Commit

Permalink
Produce identical plugin JAR regardless of OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Moore committed Jun 12, 2018
1 parent 31327c2 commit 92ab2cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

/**
* Create 'reproducible archives' (JARs will be identical regardless of the platform they are created)
* https://docs.gradle.org/3.4/userguide/working_with_files.html#sec:reproducible_archives
*/
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}

configurations {
manifoldAll
manifoldEp
Expand Down

0 comments on commit 92ab2cc

Please sign in to comment.