Commit 5560536f authored by Tony Mancill's avatar Tony Mancill

Patch build.gradle to helpl make the build reproducible

parent f1156a21
Description: use a reproducible copyright date in the JAR metadata
Author: tony mancill <tmancill@debian.org>
Forwarded: not-needed
--- a/build.gradle
+++ b/build.gradle
@@ -234,7 +234,7 @@
include "license.txt"
include "notice.txt"
into "META-INF"
- expand(copyright: new Date().format("yyyy"), version: project.version)
+ expand(copyright: new Date(Long.valueOf(System.getenv("SOURCE_DATE_EPOCH")) * 1000).format("yyyy"), version: project.version)
}
}
......@@ -18,3 +18,4 @@
0048-snakeyaml-compatibility.patch
0049-java11-compatibility.patch
0050-apache-poi-compatibility.patch
0051-reproducible-build-source-date.patch
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export SOURCE_DATE_EPOCH
JAVA_HOME := /usr/lib/jvm/default-java
MODULES = aop beans context context-support core expression instrument jdbc jms messaging orm oxm test tx web webmvc webmvc-portlet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment