Move gradle config for reproducible builds into init.gradle file

This commit is contained in:
Jonas Herzig
2017-08-28 14:50:27 +02:00
parent 95fc9a5248
commit ad3ff3e8ef
20 changed files with 28 additions and 321 deletions

View File

@@ -1,30 +0,0 @@
From e60dd702c247692529a7cece94a475650623482e Mon Sep 17 00:00:00 2001
From: Jonas Herzig <me@johni0702.de>
Date: Tue, 8 Aug 2017 19:05:14 +0200
Subject: [PATCH 1/7] Configure gradle to build reproducible archives
---
build.gradle | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/build.gradle b/build.gradle
index 4f0aa28..e0c46ea 100644
--- a/build.gradle
+++ b/build.gradle
@@ -170,6 +170,13 @@ processResources {
from 'LICENSE.txt'
}
+tasks.withType(AbstractArchiveTask) {
+ preserveFileTimestamps = false
+ reproducibleFileOrder = true
+ dirMode = 0775
+ fileMode = 0664
+}
+
// License header formatting
license {
ext {
--
2.5.5

View File

@@ -30,8 +30,8 @@ index e0c46ea..165dbe4 100644
apply plugin: 'checkstyle'
apply plugin: 'maven'
apply plugin: 'eclipse'
@@ -177,23 +172,6 @@ tasks.withType(AbstractArchiveTask) {
fileMode = 0664
@@ -170,23 +165,6 @@ tasks.withType(AbstractArchiveTask) {
from 'LICENSE.txt'
}
-// License header formatting

View File

@@ -19,8 +19,8 @@ index 0f189ec..f8598a3 100644
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
@@ -172,17 +171,6 @@ tasks.withType(AbstractArchiveTask) {
fileMode = 0664
@@ -165,17 +164,6 @@ tasks.withType(AbstractArchiveTask) {
from 'LICENSE.txt'
}
-checkstyle {