@@ -14,7 +14,7 @@ plugins {
14
14
id " com.simonharrer.modernizer" version ' 2.1.0-1'
15
15
id ' me.champeau.gradle.jmh' version ' 0.5.0'
16
16
id ' com.github.ben-manes.versions' version ' 0.28.0'
17
- id ' org.javamodularity.moduleplugin' version ' 1.5 .0'
17
+ id ' org.javamodularity.moduleplugin' version ' 1.7 .0'
18
18
id ' org.openjfx.javafxplugin' version ' 0.0.9'
19
19
id ' org.beryx.jlink' version ' 2.20.0'
20
20
@@ -50,11 +50,9 @@ application {
50
50
51
51
// TODO: Ugly workaround to temporarily ignore build errors to dependencies of latex2unicode
52
52
// These should be removed, as well as the files in the lib folder, as soon as they have valid module names
53
- patchModules. config = [
54
- " test=fastparse_2.12-1.0.0.jar" ,
55
- " test2=fastparse-utils_2.12-1.0.0.jar" ,
56
- " test3=sourcecode_2.12-0.1.4.jar"
57
- ]
53
+ modularity. patchModule(" test" , " fastparse_2.12-1.0.0.jar" )
54
+ modularity. patchModule(" test2" , " fastparse-utils_2.12-1.0.0.jar" )
55
+ modularity. patchModule(" test3" , " sourcecode_2.12-0.1.4.jar" )
58
56
59
57
// These are the Java version requirements we will check on each start of JabRef
60
58
ext. minRequiredJavaVersion = " 1.8.0_171"
@@ -179,9 +177,9 @@ dependencies {
179
177
180
178
implementation ' de.undercouch:citeproc-java:2.1.0-SNAPSHOT'
181
179
182
- implementation group : ' jakarta.activation' , name : ' jakarta.activation-api' , version : ' 1.2.2 '
183
- implementation group : ' jakarta.xml.bind' , name : ' jakarta.xml.bind-api' , version : ' 2.3.3 '
184
- implementation group : ' org.glassfish.jaxb' , name : ' jaxb-runtime' , version : ' 2.3.3 '
180
+ implementation group : ' jakarta.activation' , name : ' jakarta.activation-api' , version : ' 1.2.1 '
181
+ implementation group : ' jakarta.xml.bind' , name : ' jakarta.xml.bind-api' , version : ' 2.3.2 '
182
+ implementation group : ' org.glassfish.jaxb' , name : ' jaxb-runtime' , version : ' 2.3.2 '
185
183
186
184
implementation (' com.github.tomtung:latex2unicode_2.12:0.2.6' ) {
187
185
exclude module : ' fastparse_2.12'
@@ -385,45 +383,41 @@ compileJava {
385
383
386
384
run {
387
385
// TODO: Remove access to internal api
388
- jvmArgs ' --add-exports' , ' javafx.controls/com.sun.javafx.scene.control=org.jabref' ,
389
- ' --add-exports' , ' org.controlsfx.controls/impl.org.controlsfx.skin=org.jabref' ,
390
- ' --add-opens' , ' javafx.controls/javafx.scene.control=org.jabref' ,
391
- ' --add-opens' , ' org.controlsfx.controls/org.controlsfx.control.textfield=org.jabref' ,
392
- ' --add-opens' , ' javafx.controls/com.sun.javafx.scene.control=org.jabref' ,
393
- // Not sure why we need to restate the controlfx exports
394
- // Taken from here: https://github.com/controlsfx/controlsfx/blob/9.0.0/build.gradle#L1
395
- " --add-exports" , " javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls" ,
396
- " --add-exports" , " javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls" ,
397
- " --add-exports" , " javafx.graphics/com.sun.javafx.css=org.controlsfx.controls" ,
398
- " --add-exports" , " javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls" ,
399
- " --add-exports" , " javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls" ,
400
- " --add-exports" , " javafx.controls/com.sun.javafx.scene.control.inputmap=org.controlsfx.controls" ,
401
- " --add-exports" , " javafx.base/com.sun.javafx.event=org.controlsfx.controls" ,
402
- " --add-exports" , " javafx.base/com.sun.javafx.collections=org.controlsfx.controls" ,
403
- " --add-exports" , " javafx.base/com.sun.javafx.runtime=org.controlsfx.controls" ,
404
- " --add-exports" , " javafx.web/com.sun.webkit=org.controlsfx.controls" ,
405
- " --add-exports" , " javafx.graphics/com.sun.javafx.css=org.controlsfx.controls" ,
406
- " --add-opens" , " javafx.controls/javafx.scene.control.skin=org.controlsfx.controls" ,
407
- " --add-opens" , " javafx.graphics/javafx.scene=org.controlsfx.controls" ,
408
- " --add-exports" , " javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix" ,
409
- " --add-opens" , " javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix" ,
410
- " --add-opens" , " javafx.base/com.sun.javafx.binding=com.jfoenix" ,
411
- " --add-opens" , " javafx.graphics/com.sun.javafx.stage=com.jfoenix" ,
412
- " --add-opens" , " javafx.base/com.sun.javafx.event=com.jfoenix" ,
413
- ' --add-exports' , ' com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle'
414
-
415
- // TODO: The following code should have the same affect as the above one, but doesn't work for some reason
416
- // https://github.com/java9-modularity/gradle-modules-plugin/issues/89
417
386
moduleOptions {
418
387
addExports = [
419
388
' javafx.controls/com.sun.javafx.scene.control' : ' org.jabref' ,
420
389
' org.controlsfx.controls/impl.org.controlsfx.skin' : ' org.jabref' ,
421
- ' com.oracle.truffle.regex/com.oracle.truffle.regex' : ' org.graalvm.truffle'
390
+
391
+ ' javafx.controls/com.sun.javafx.scene.control.behavior' : ' com.jfoenix' ,
392
+ ' com.oracle.truffle.regex/com.oracle.truffle.regex' : ' org.graalvm.truffle' ,
393
+
394
+ // Not sure why we need to restate the controlfx exports
395
+ // Taken from here: https://github.com/controlsfx/controlsfx/blob/9.0.0/build.gradle#L1
396
+ ' javafx.graphics/com.sun.javafx.scene' : ' org.controlsfx.controls' ,
397
+ ' javafx.graphics/com.sun.javafx.scene.traversal' : ' org.controlsfx.controls' ,
398
+ ' javafx.graphics/com.sun.javafx.css' : ' org.controlsfx.controls' ,
399
+ ' javafx.controls/com.sun.javafx.scene.control.behavior' : ' org.controlsfx.controls' ,
400
+ ' javafx.controls/com.sun.javafx.scene.control' : ' org.controlsfx.controls' ,
401
+ ' javafx.controls/com.sun.javafx.scene.control.inputmap' : ' org.controlsfx.controls' ,
402
+ ' javafx.base/com.sun.javafx.event' : ' org.controlsfx.controls' ,
403
+ ' javafx.base/com.sun.javafx.collections' : ' org.controlsfx.controls' ,
404
+ ' javafx.base/com.sun.javafx.runtime' : ' org.controlsfx.controls' ,
405
+ ' javafx.web/com.sun.webkit' : ' org.controlsfx.controls' ,
406
+ ' javafx.graphics/com.sun.javafx.css' : ' org.controlsfx.controls'
422
407
]
423
408
424
409
addOpens = [
425
410
' javafx.controls/javafx.scene.control' : ' org.jabref' ,
426
- ' org.controlsfx.controls/org.controlsfx.control.textfield' : ' org.jabref'
411
+ ' org.controlsfx.controls/org.controlsfx.control.textfield' : ' org.jabref' ,
412
+ ' javafx.controls/com.sun.javafx.scene.control' : ' org.jabref' ,
413
+
414
+ ' javafx.controls/javafx.scene.control.skin' : ' org.controlsfx.controls' ,
415
+ ' javafx.graphics/javafx.scene' : ' org.controlsfx.controls' ,
416
+
417
+ ' javafx.controls/com.sun.javafx.scene.control.behavior' : ' com.jfoenix' ,
418
+ ' javafx.base/com.sun.javafx.binding' : ' com.jfoenix' ,
419
+ ' javafx.graphics/com.sun.javafx.stage' : ' com.jfoenix' ,
420
+ ' javafx.base/com.sun.javafx.event' : ' com.jfoenix'
427
421
]
428
422
}
429
423
}
@@ -566,7 +560,6 @@ jlink {
566
560
// Execute ./gradlew suggestMergedModuleInfo and include the suggested directives here.
567
561
mergedModule {
568
562
requires ' java.xml'
569
- requires ' java.xml.bind'
570
563
requires ' com.sun.xml.txw2'
571
564
requires ' java.desktop'
572
565
requires ' org.objectweb.asm'
@@ -576,14 +569,12 @@ jlink {
576
569
requires ' java.management'
577
570
requires ' java.naming'
578
571
requires ' java.security.sasl'
579
- requires ' com.sun.xml.fastinfoset'
580
572
requires ' jdk.security.jgss'
581
573
requires ' java.logging'
582
574
requires ' jdk.xml.dom'
583
575
requires ' java.sql'
584
576
requires ' java.rmi'
585
577
requires ' java.security.jgss'
586
- requires ' jakarta.activation' ;
587
578
requires ' com.oracle.truffle.regex'
588
579
requires ' jdk.jsobject'
589
580
requires ' jdk.management'
@@ -611,7 +602,7 @@ jlink {
611
602
uses ' org.mariadb.jdbc.credential.CredentialPlugin'
612
603
uses ' org.mariadb.jdbc.tls.TlsSocketPlugin'
613
604
uses ' org.mariadb.jdbc.LocalInfileInterceptor'
614
- provides ' javax.xml.bind.JAXBContextFactory' with ' com.sun.xml.bind.v2.JAXBContextFactory ' ;
605
+ uses ' javax.xml.bind.JAXBContextFactory'
615
606
provides ' javax.annotation.processing.Processor' with ' org.apache.logging.log4j.plugins.processor.PluginProcessor'
616
607
provides ' org.controlsfx.glyphfont.GlyphFont' with ' org.controlsfx.glyphfont.FontAwesome'
617
608
provides ' org.apache.logging.log4j.message.ThreadDumpMessage.ThreadInfoFactory' with ' org.apache.logging.log4j.core.message.ExtendedThreadInfoFactory'
0 commit comments