@@ -12,17 +12,14 @@ buildscript {
12
12
url ' https://oss.sonatype.org/content/groups/public'
13
13
}
14
14
}
15
- dependencies {
16
- classpath ' org.junit.platform:junit-platform-gradle-plugin:1.1.0'
17
- }
18
15
}
19
16
20
17
plugins {
21
18
id ' com.gradle.build-scan' version ' 1.11'
22
- id ' com.install4j.gradle' version ' 7.0.3 '
19
+ id ' com.install4j.gradle' version ' 7.0.4 '
23
20
id ' com.github.johnrengelman.shadow' version ' 2.0.2'
24
21
id " de.sebastianboegl.shadow.transformer.log4j" version " 2.1.1"
25
- id " com.simonharrer.modernizer" version ' 1.5 .0-1'
22
+ id " com.simonharrer.modernizer" version ' 1.6 .0-1'
26
23
id ' me.champeau.gradle.jmh' version ' 0.4.3'
27
24
id ' net.ltgt.errorprone' version ' 0.0.13'
28
25
id ' com.github.ben-manes.versions' version ' 0.17.0'
@@ -41,16 +38,15 @@ apply plugin: 'jacoco'
41
38
apply plugin : ' install4j'
42
39
apply plugin : ' me.champeau.gradle.jmh'
43
40
apply plugin : ' checkstyle'
44
- apply plugin : ' org.junit.platform.gradle.plugin'
45
41
46
42
apply from : ' eclipse.gradle'
47
43
apply from : ' localization.gradle'
48
44
apply from : ' xjc.gradle'
49
45
50
46
group = " org.jabref"
51
- version = " 4.2 -dev"
52
- project. ext. threeDotVersion = " 4.1 .0.1"
53
- project. ext. install4jDir = hasProperty(" install4jDir" ) ? getProperty(" install4jDir" ) : (OperatingSystem . current(). isWindows() ? ' C:/Program Files/install4j6 ' : ' install4j6 ' )
47
+ version = " 4.3 -dev"
48
+ project. ext. threeDotVersion = " 4.2 .0.1"
49
+ project. ext. install4jDir = hasProperty(" install4jDir" ) ? getProperty(" install4jDir" ) : (OperatingSystem . current(). isWindows() ? ' C:/Program Files/install4j7 ' : ' install4j7 ' )
54
50
sourceCompatibility = 1.8
55
51
targetCompatibility = 1.8
56
52
mainClassName = " org.jabref.JabRefMain"
@@ -91,9 +87,9 @@ dependencies {
91
87
compile ' com.jgoodies:jgoodies-common:1.8.1'
92
88
compile ' com.jgoodies:jgoodies-forms:1.9.0'
93
89
94
- compile ' org.apache.pdfbox:pdfbox:2.0.8 '
95
- compile ' org.apache.pdfbox:fontbox:2.0.8 '
96
- compile ' org.apache.pdfbox:xmpbox:2.0.8 '
90
+ compile ' org.apache.pdfbox:pdfbox:2.0.9 '
91
+ compile ' org.apache.pdfbox:fontbox:2.0.9 '
92
+ compile ' org.apache.pdfbox:xmpbox:2.0.9 '
97
93
98
94
// required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635
99
95
compile ' org.bouncycastle:bcprov-jdk15on:1.59'
@@ -121,24 +117,23 @@ dependencies {
121
117
122
118
compile ' net.java.dev.glazedlists:glazedlists_java15:1.9.1'
123
119
124
- compile ' com.google.guava:guava:24.1 -jre'
120
+ compile ' com.google.guava:guava:25.0 -jre'
125
121
126
122
// JavaFX stuff
127
123
compile ' de.codecentric.centerdevice:javafxsvg:1.3.0'
128
124
compile ' de.jensd:fontawesomefx-materialdesignfont:1.7.22-4'
129
125
compile ' de.saxsys:mvvmfx-validation:1.7.0'
130
126
compile ' de.saxsys:mvvmfx:1.7.0'
131
127
compile ' org.fxmisc.easybind:easybind:1.0.3'
132
- compile ' org.fxmisc.flowless:flowless:0.6'
133
- compile ' org.fxmisc.richtext:richtextfx:0.8.2 '
128
+ compile ' org.fxmisc.flowless:flowless:0.6.1 '
129
+ compile ' org.fxmisc.richtext:richtextfx:0.9.0 '
134
130
compile ' com.sibvisions.external.jvxfx:dndtabpane:0.1'
135
131
compile ' javax.inject:javax.inject:1'
136
132
137
-
138
133
// Cannot be updated to 9.*.* until Jabref works with Java 9
139
134
compile ' org.controlsfx:controlsfx:8.40.15-SNAPSHOT'
140
135
141
- compile ' org.jsoup:jsoup:1.11.2 '
136
+ compile ' org.jsoup:jsoup:1.11.3 '
142
137
compile ' com.mashape.unirest:unirest-java:1.4.9'
143
138
144
139
// >1.8.0-beta is required for java 9 compatibility
@@ -155,31 +150,31 @@ dependencies {
155
150
156
151
compile ' com.github.tomtung:latex2unicode_2.12:0.2.2'
157
152
158
- compile group : ' com.microsoft.azure' , name : ' applicationinsights-core' , version : ' 2.0.1 '
159
- compile group : ' com.microsoft.azure' , name : ' applicationinsights-logging-log4j2' , version : ' 2.0.1 '
153
+ compile group : ' com.microsoft.azure' , name : ' applicationinsights-core' , version : ' 2.1.0 '
154
+ compile group : ' com.microsoft.azure' , name : ' applicationinsights-logging-log4j2' , version : ' 2.1.0 '
160
155
161
- testCompile ' org.junit.jupiter:junit-jupiter-api:5.1 .0'
162
- testCompile ' org.junit.jupiter:junit-jupiter-params:5.1 .0'
163
- testRuntime ' org.junit.jupiter:junit-jupiter-engine:5.1 .0'
164
- testRuntime ' org.junit.vintage:junit-vintage-engine:5.1 .0'
165
- testCompile ' org.junit.platform:junit-platform-launcher:1.1 .0'
156
+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.2 .0'
157
+ testCompile ' org.junit.jupiter:junit-jupiter-params:5.2 .0'
158
+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.2 .0'
159
+ testRuntimeOnly ' org.junit.vintage:junit-vintage-engine:5.2 .0'
160
+ testCompile ' org.junit.platform:junit-platform-launcher:1.2 .0'
166
161
testRuntime ' org.apache.logging.log4j:log4j-core:2.11.0'
167
162
testRuntime ' org.apache.logging.log4j:log4j-jul:2.11.0'
168
- testCompile ' org.mockito:mockito-core:2.16.0 '
169
- testCompile ' com.github.tomakehurst:wiremock:2.15 .0'
163
+ testCompile ' org.mockito:mockito-core:2.18.3 '
164
+ testCompile ' com.github.tomakehurst:wiremock:2.17 .0'
170
165
testCompile ' org.assertj:assertj-swing-junit:3.8.0'
171
166
testCompile ' org.reflections:reflections:0.9.11'
172
- testCompile ' org.xmlunit:xmlunit-core:2.5.1 '
173
- testCompile ' org.xmlunit:xmlunit-matchers:2.5.1 '
167
+ testCompile ' org.xmlunit:xmlunit-core:2.6.0 '
168
+ testCompile ' org.xmlunit:xmlunit-matchers:2.6.0 '
174
169
testCompile ' com.tngtech.archunit:archunit-junit:0.5.0'
175
170
testCompile " org.testfx:testfx-core:4.0.+"
176
171
testCompile " org.testfx:testfx-junit5:4.0.+"
177
172
178
- checkstyle ' com.puppycrawl.tools:checkstyle:8.8 '
173
+ checkstyle ' com.puppycrawl.tools:checkstyle:8.10 '
179
174
}
180
175
181
176
jacoco {
182
- toolVersion = ' 0.8.0 '
177
+ toolVersion = ' 0.8.1 '
183
178
}
184
179
185
180
dependencyUpdates {
@@ -205,12 +200,12 @@ dependencyUpdates.resolutionStrategy = {
205
200
}
206
201
}
207
202
withModule(" org.jacoco:org.jacoco.agent" ) { ComponentSelection selection ->
208
- if (selection. candidate. version. equals( " 0.8.0 " ) ) {
203
+ if (selection. candidate. version ==~ / 0.8.* / ) {
209
204
selection. reject(" As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden." )
210
205
}
211
206
}
212
207
withModule(" org.jacoco:org.jacoco.ant" ) { ComponentSelection selection ->
213
- if (selection. candidate. version. equals( " 0.8.0 " ) ) {
208
+ if (selection. candidate. version ==~ / 0.8.* / ) {
214
209
selection. reject(" As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden." )
215
210
}
216
211
}
@@ -315,14 +310,16 @@ javadoc {
315
310
}
316
311
317
312
// Test tasks
318
- junitPlatform {
319
- filters {
320
- tags {
321
- exclude ' DatabaseTest' , ' FetcherTest' , ' GUITest' , ' org.jabref.testutils.category.FetcherTest' , ' org.jabref.testutils.category.GUITest'
322
- }
313
+ test {
314
+ useJUnitPlatform {
315
+ excludeTags ' DatabaseTest' , ' FetcherTest' , ' GUITest' , ' org.jabref.testutils.category.FetcherTest' , ' org.jabref.testutils.category.GUITest'
316
+ }
317
+
318
+ testLogging {
319
+ // set options for log level LIFECYCLE
320
+ events " failed"
321
+ exceptionFormat " full"
323
322
}
324
-
325
- logManager ' org.apache.logging.log4j.jul.LogManager'
326
323
}
327
324
328
325
task databaseTest (type : Test ) {
@@ -359,8 +356,8 @@ tasks.withType(Test) {
359
356
}
360
357
361
358
task jacocoMerge (type : JacocoMerge ) {
362
- executionData file(" $buildDir /jacoco/junitPlatformTest .exec" ), file(" $buildDir /jacoco/databaseTest.exec" ), file(" $buildDir /jacoco/fetcherTest.exec" )
363
- dependsOn junitPlatformTest , databaseTest, fetcherTest
359
+ executionData file(" $buildDir /jacoco/test .exec" ), file(" $buildDir /jacoco/databaseTest.exec" ), file(" $buildDir /jacoco/fetcherTest.exec" )
360
+ dependsOn test , databaseTest, fetcherTest
364
361
}
365
362
366
363
jacocoTestReport {
@@ -373,37 +370,16 @@ jacocoTestReport {
373
370
}
374
371
}
375
372
376
- afterEvaluate {
377
- def junitPlatformTest = tasks. junitPlatformTest
378
-
379
- jacoco {
380
- applyTo(junitPlatformTest)
381
- }
382
-
383
- task jacocoJunit5TestReport(type : JacocoReport ) {
384
- executionData jacocoMerge. destinationFile
385
- dependsOn jacocoMerge
386
- sourceSets sourceSets. main
387
- sourceDirectories = files(sourceSets. main. allSource. srcDirs)
388
- classDirectories = files(sourceSets. main. output)
389
-
390
- reports {
391
- xml. enabled true
392
- html. enabled true
393
- }
394
- }
395
- }
396
-
397
373
// Code quality tasks
398
374
checkstyle {
399
375
// do not use other packages for checkstyle, excluding gen(erated) sources
400
376
checkstyleMain. source = " src/main/java"
401
377
toolVersion = ' 8.5'
378
+
379
+ // do not perform checkstyle checks by default
380
+ sourceSets = []
402
381
}
403
382
404
- checkstyleMain. shouldRunAfter test
405
- checkstyleTest. shouldRunAfter test
406
-
407
383
modernizer {
408
384
// We have more than 20 issues, which are not fixed yet. Nevertheless, we produce the modernizer output.
409
385
// See https://github.com/andrewgaul/modernizer-maven-plugin for more information on modernizer
@@ -452,8 +428,16 @@ install4j {
452
428
installDir = file(project. ext. install4jDir)
453
429
}
454
430
431
+ task generateFinalJabRefPS1File (type : Copy ) {
432
+ from(' buildres' ) {
433
+ include ' JabRef.ps1'
434
+ }
435
+ into ' build'
436
+ filter(org.apache.tools.ant.filters.ReplaceTokens , tokens : [jabRefJarFileName : jar. archiveName])
437
+ }
438
+
455
439
// has to be defined AFTER 'dev' things to have the correct project.version
456
- task media (type : com.install4j.gradle.Install4jTask , dependsOn : " releaseJar" ) {
440
+ task media (type : com.install4j.gradle.Install4jTask , dependsOn : [ " releaseJar" , " generateFinalJabRefPS1File " ] ) {
457
441
projectFile = file(' jabref.install4j' )
458
442
release = project. version
459
443
winKeystorePassword = System . getenv(' CERTIFICATE_PW' )
0 commit comments