Skip to content

Commit beece6a

Browse files
dependabot-preview[bot]tobiasdiezkoppor
authored
Bump org.javamodularity.moduleplugin from 1.5.0 to 1.7.0 (#6549)
* Bump org.javamodularity.moduleplugin from 1.5.0 to 1.7.0 Bumps org.javamodularity.moduleplugin from 1.5.0 to 1.7.0. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Try to fix build by updating javafxplugin * Add sona as plugin repo * Update build.gradle * Update settings.gradle * Use preferred way to specify module information * Remove redunant test config * Update build.gradle * Update build.gradle * Update build.gradle * Update build.gradle * Update build.gradle * Update module-info.test * Update module-info.test * Update module-info.java * Update module-info.java * Update build.gradle * Update build.gradle * Update build.gradle * Update build.gradle Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Tobias Diez <tobiasdiez@gmx.de> Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
1 parent 96026f7 commit beece6a

File tree

3 files changed

+44
-51
lines changed

3 files changed

+44
-51
lines changed

build.gradle

+35-44
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
id "com.simonharrer.modernizer" version '2.1.0-1'
1515
id 'me.champeau.gradle.jmh' version '0.5.0'
1616
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'
1818
id 'org.openjfx.javafxplugin' version '0.0.9'
1919
id 'org.beryx.jlink' version '2.20.0'
2020

@@ -50,11 +50,9 @@ application {
5050

5151
// TODO: Ugly workaround to temporarily ignore build errors to dependencies of latex2unicode
5252
// 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")
5856

5957
// These are the Java version requirements we will check on each start of JabRef
6058
ext.minRequiredJavaVersion = "1.8.0_171"
@@ -179,9 +177,9 @@ dependencies {
179177

180178
implementation 'de.undercouch:citeproc-java:2.1.0-SNAPSHOT'
181179

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'
185183

186184
implementation ('com.github.tomtung:latex2unicode_2.12:0.2.6') {
187185
exclude module: 'fastparse_2.12'
@@ -385,45 +383,41 @@ compileJava {
385383

386384
run {
387385
// 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
417386
moduleOptions {
418387
addExports = [
419388
'javafx.controls/com.sun.javafx.scene.control' : 'org.jabref',
420389
'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'
422407
]
423408

424409
addOpens = [
425410
'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'
427421
]
428422
}
429423
}
@@ -566,7 +560,6 @@ jlink {
566560
// Execute ./gradlew suggestMergedModuleInfo and include the suggested directives here.
567561
mergedModule {
568562
requires 'java.xml'
569-
requires 'java.xml.bind'
570563
requires 'com.sun.xml.txw2'
571564
requires 'java.desktop'
572565
requires 'org.objectweb.asm'
@@ -576,14 +569,12 @@ jlink {
576569
requires 'java.management'
577570
requires 'java.naming'
578571
requires 'java.security.sasl'
579-
requires 'com.sun.xml.fastinfoset'
580572
requires 'jdk.security.jgss'
581573
requires 'java.logging'
582574
requires 'jdk.xml.dom'
583575
requires 'java.sql'
584576
requires 'java.rmi'
585577
requires 'java.security.jgss'
586-
requires 'jakarta.activation';
587578
requires 'com.oracle.truffle.regex'
588579
requires 'jdk.jsobject'
589580
requires 'jdk.management'
@@ -611,7 +602,7 @@ jlink {
611602
uses 'org.mariadb.jdbc.credential.CredentialPlugin'
612603
uses 'org.mariadb.jdbc.tls.TlsSocketPlugin'
613604
uses 'org.mariadb.jdbc.LocalInfileInterceptor'
614-
provides 'javax.xml.bind.JAXBContextFactory' with 'com.sun.xml.bind.v2.JAXBContextFactory';
605+
uses 'javax.xml.bind.JAXBContextFactory'
615606
provides 'javax.annotation.processing.Processor' with 'org.apache.logging.log4j.plugins.processor.PluginProcessor'
616607
provides 'org.controlsfx.glyphfont.GlyphFont' with 'org.controlsfx.glyphfont.FontAwesome'
617608
provides 'org.apache.logging.log4j.message.ThreadDumpMessage.ThreadInfoFactory' with 'org.apache.logging.log4j.core.message.ExtendedThreadInfoFactory'

settings.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1+
pluginManagement {
2+
repositories {
3+
maven {
4+
url 'https://oss.sonatype.org/content/repositories/snapshots'
5+
}
6+
gradlePluginPortal()
7+
}
8+
}
9+
110
rootProject.name = "JabRef"

src/test/java/module-info.test

-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
--add-modules
2-
// Add junit5 module dependency
3-
org.junit.jupiter.api
4-
--add-reads
5-
// Make junit5 module visible
6-
org.jabref=org.junit.jupiter.api
7-
81
--add-modules
92
// Add junit5 testfx module dependency
103
org.testfx.junit5

0 commit comments

Comments
 (0)