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 9d0e3b6 commit de248d6
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
}

repositories {
if(!System.getenv('CI')) {
mavenLocal()
Expand Down

0 comments on commit de248d6

Please sign in to comment.