[Git][java-team/gradle][master] Improved the reproducibility of the timestamp in build-receipt.properties
Emmanuel Bourg
gitlab at salsa.debian.org
Mon Sep 16 14:29:11 BST 2019
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 <ebourg at apache.org> 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 <apo at debian.org>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190916/18f935c2/attachment.html>
More information about the pkg-java-commits
mailing list