From 967dde43959c2431ecaf9d92d6527dd29566bced Mon Sep 17 00:00:00 2001 From: str4d Date: Sun, 21 Apr 2019 18:09:20 +0000 Subject: [PATCH] Gradle: Generate reproducible archives --- build.gradle | 5 +++++ history.txt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 5a3ad82c9d..94bda0ea45 100644 --- a/build.gradle +++ b/build.gradle @@ -82,6 +82,11 @@ configure(javaProjects) { sourceCompatibility = 1.7 targetCompatibility = 1.7 + tasks.withType(AbstractArchiveTask) { + preserveFileTimestamps = false + reproducibleFileOrder = true + } + def i2pBootClasspath // Set java7BootClasspath=/path/to/rt.jar:/path/to/jce.jar in ~/.gradle/gradle.properties if needed if (java7BootClasspath) { diff --git a/history.txt b/history.txt index 71e1c982e3..38ce6c559e 100644 --- a/history.txt +++ b/history.txt @@ -1,3 +1,8 @@ +2019-04-21 str4d + * Gradle: + - Adjust dependencies to match Tomcat and Jetty updates + - Generate reproducible archives + 2019-04-17 zzz * Transport: More fixes for NTCP when SSU disabled (ticket #1417)