Move gradle config for reproducible builds into init.gradle file
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
From 0b256e84ff52a8a83b629cdfd404b4d28d0d8450 Mon Sep 17 00:00:00 2001
|
||||
From: Jonas Herzig <me@johni0702.de>
|
||||
Date: Sat, 26 Aug 2017 17:33:25 +0200
|
||||
Subject: [PATCH 1/2] Configure gradle to build reproducible archives
|
||||
|
||||
---
|
||||
build.gradle | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/build.gradle b/build.gradle
|
||||
index 8a9dfbe..fda0b61 100644
|
||||
--- a/build.gradle
|
||||
+++ b/build.gradle
|
||||
@@ -22,6 +22,13 @@ archivesBaseName = 'Srg2Source'
|
||||
targetCompatibility = '1.6'
|
||||
sourceCompatibility = '1.6'
|
||||
|
||||
+tasks.withType(AbstractArchiveTask) {
|
||||
+ preserveFileTimestamps = false
|
||||
+ reproducibleFileOrder = true
|
||||
+ dirMode = 0775
|
||||
+ fileMode = 0664
|
||||
+}
|
||||
+
|
||||
configurations {
|
||||
deployerJars
|
||||
}
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -28,9 +28,9 @@ index fda0b61..eefeafe 100644
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'idea'
|
||||
apply plugin: 'eclipse'
|
||||
@@ -29,10 +16,6 @@ tasks.withType(AbstractArchiveTask) {
|
||||
fileMode = 0664
|
||||
}
|
||||
@@ -22,10 +9,6 @@ configurations {
|
||||
targetCompatibility = '1.6'
|
||||
sourceCompatibility = '1.6'
|
||||
|
||||
-configurations {
|
||||
- deployerJars
|
||||
@@ -39,7 +39,7 @@ index fda0b61..eefeafe 100644
|
||||
dependencies {
|
||||
testCompile "junit:junit:4.12"
|
||||
|
||||
@@ -56,9 +39,6 @@ dependencies {
|
||||
@@ -45,9 +28,6 @@ dependencies {
|
||||
|
||||
// Potential Eclipse AST replacement (not used yet)
|
||||
//compile 'fr.inria.gforge.spoon:spoon-core:5.1.0'
|
||||
@@ -49,7 +49,7 @@ index fda0b61..eefeafe 100644
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -84,86 +64,3 @@ jar {
|
||||
@@ -73,86 +53,3 @@ jar {
|
||||
exclude 'data/**'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user