Emmanuel Bourg pushed to branch master at Debian Java Maintainers / gradle


Commits:
a4c60c9a by Emmanuel Bourg at 2019-09-16T13:22:50Z
Improved the reproducibility of the timestamp in build-receipt.properties

- - - - -


2 changed files:

- debian/changelog
- debian/patches/remove-timestamps.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+gradle (4.4.1-9) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Improved the reproducibility of the timestamp in build-receipt.properties
+
+ -- Emmanuel Bourg <[email protected]>  Mon, 16 Sep 2019 15:21:56 +0200
+
 gradle (4.4.1-8) unstable; urgency=medium
 
   * Backported a fix improving the detection of Java 9+


=====================================
debian/patches/remove-timestamps.patch
=====================================
@@ -2,14 +2,10 @@ From: Markus Koschany <[email protected]>
 Date: Sat, 18 Nov 2017 23:15:53 +0100
 Subject: remove timestamps
 
-his patch manually sets the timestamps and other dynamic strings that break
+This patch manually sets the timestamps and other dynamic strings that break
 the reproducibility.
 
 Forwarded: no
----
- subprojects/version-info/version-info.gradle | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
 --- a/gradle/versioning.gradle
 +++ b/gradle/versioning.gradle
 @@ -115,13 +115,12 @@
@@ -28,3 +24,13 @@ Forwarded: no
      }
  }
  
+--- a/buildSrc/src/main/groovy/org/gradle/build/BuildReceipt.groovy
++++ b/buildSrc/src/main/groovy/org/gradle/build/BuildReceipt.groovy
+@@ -32,6 +32,7 @@
+     private static final SimpleDateFormat TIMESTAMP_FORMAT = new 
java.text.SimpleDateFormat('yyyyMMddHHmmssZ')
+     private static final SimpleDateFormat ISO_TIMESTAMP_FORMAT = new 
java.text.SimpleDateFormat('yyyy-MM-dd HH:mm:ss z')
+     static {
++        TIMESTAMP_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));
+         ISO_TIMESTAMP_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));
+     }
+     private static final String UNKNOWN_TIMESTAMP = "unknown"



View it on GitLab: 
https://salsa.debian.org/java-team/gradle/commit/a4c60c9ad4f62e8eabaf532686460884e847c795

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/gradle/commit/a4c60c9ad4f62e8eabaf532686460884e847c795
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
pkg-java-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to