File: 010_gradle_build.patch

package info (click to toggle)
jabref 3.8.1%2Bds-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,336 kB
  • sloc: java: 114,114; xml: 3,985; python: 283; sh: 282; perl: 200; ruby: 22; makefile: 6
file content (114 lines) | stat: -rw-r--r-- 3,179 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Description: patch upstream build system for building on Debian
Author: tony mancill <tmancill@debian.org>
Forwarded: not-needed

--- a/build.gradle
+++ b/build.gradle
@@ -2,6 +2,7 @@
 
 // to update the gradle wrapper, execute ./gradlew wrapper --gradle-version 3.0
 
+/*
 buildscript {
     repositories {
         maven {
@@ -28,9 +29,11 @@
     licenseAgreementUrl = 'https://gradle.com/terms-of-service'
     licenseAgree = 'yes'
 }
+*/
 
 apply plugin: "java"
 apply plugin: "application"
+/*
 apply plugin: "project-report"
 apply plugin: 'jacoco'
 apply plugin: 'install4j'
@@ -39,17 +42,20 @@
 apply plugin: 'checkstyle'
 
 apply from: 'eclipse.gradle'
-apply from: 'localization.gradle'
+*/
+// disable because we don't have jython-standalone
+//apply from: 'localization.gradle'
 apply from: 'xjc.gradle'
 
 group = "net.sf.jabref"
 version = "3.8.1"
 project.ext.threeDotVersion = "3.8.1.0"
-project.ext.install4jDir = hasProperty("install4jDir") ? getProperty("install4jDir") : (OperatingSystem.current().isWindows() ? 'C:/Program Files/install4j6' : 'install4j6')
+//project.ext.install4jDir = hasProperty("install4jDir") ? getProperty("install4jDir") : (OperatingSystem.current().isWindows() ? 'C:/Program Files/install4j6' : 'install4j6')
 sourceCompatibility = 1.8
 targetCompatibility = 1.8
 mainClassName = "net.sf.jabref.JabRefMain"
 
+/*
 install4j {
     installDir = file(project.ext.install4jDir)
 }
@@ -61,6 +67,7 @@
         url 'https://oss.sonatype.org/content/groups/public'
     }
 }
+*/
 
 configurations {
     antlr3
@@ -68,6 +75,8 @@
 }
 
 dependencies {
+    compile 'com.michaelbaranov.microba:microba:0.4.4'
+    compile 'spin:spin:1.5'
     compile 'com.jgoodies:jgoodies-common:1.8.1'
     compile 'com.jgoodies:jgoodies-forms:1.9.0'
     compile 'com.jgoodies:jgoodies-looks:2.7.0'
@@ -118,8 +127,8 @@
     compile 'org.apache.logging.log4j:log4j-jcl:2.7'
     compile 'org.apache.logging.log4j:log4j-api:2.7'
     compile 'org.apache.logging.log4j:log4j-core:2.7'
-    compile 'org.xmlunit:xmlunit-core:2.3.0'
-    compile 'org.xmlunit:xmlunit-matchers:2.3.0'
+    //compile 'org.xmlunit:xmlunit-core:2.3.0'
+    //compile 'org.xmlunit:xmlunit-matchers:2.3.0'
 
     testCompile 'junit:junit:4.12'
     testCompile 'org.mockito:mockito-core:2.3.0'
@@ -256,11 +265,12 @@
 
 tasks.withType(Test) {
     reports.html.destination = file("${reporting.baseDir}/${name}")
-    jacoco {
-        append = true
-    }
+    //jacoco {
+    //    append = true
+    //}
 }
 
+/*
 jacocoTestReport {
     reports {
         xml.enabled = true // coveralls plugin depends on xml format report
@@ -298,6 +308,7 @@
         }
     })
 }
+*/
 
 /*
  * Changes project.version to VERSION--snapshot--DATE--GIT_HASH
@@ -332,6 +343,7 @@
     project.version += "--snapshot--" + infoString
 }
 
+/*
 // has to be defined AFTER 'dev' things to have the correct project.version
 task media(type: com.install4j.gradle.Install4jTask, dependsOn: "releaseJar") {
     projectFile = file('jabref.install4j')
@@ -390,3 +402,4 @@
     // See https://github.com/andrewgaul/modernizer-maven-plugin for more information on modernizer
     failOnViolations = false
 }
+*/