From 9b340fd815ff902f3d14f23330a437260eea1f46 Mon Sep 17 00:00:00 2001 From: Joerg Lenhard Date: Mon, 11 Dec 2017 15:17:37 +0100 Subject: [PATCH 1/2] Switch source level and add module info --- build.gradle | 4 ++-- .../java/org/jabref/gui/customjfx/support/module-info.java | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/jabref/gui/customjfx/support/module-info.java diff --git a/build.gradle b/build.gradle index da59007..0cd379a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' -sourceCompatibility = 1.8 -targetCompatibility = 1.8 +sourceCompatibility = 1.9 +targetCompatibility = 1.9 group = "org.jabref" version = "1.0.0" diff --git a/src/main/java/org/jabref/gui/customjfx/support/module-info.java b/src/main/java/org/jabref/gui/customjfx/support/module-info.java new file mode 100644 index 0000000..8927741 --- /dev/null +++ b/src/main/java/org/jabref/gui/customjfx/support/module-info.java @@ -0,0 +1,7 @@ +module customjfx { + requires java.desktop; + requires javafx.base; + requires javafx.graphics; + + exports org.jabref.gui.customjfx.support; +} \ No newline at end of file From a687a77c46ac67aa4f805d015a6a3cd61c7a8cfe Mon Sep 17 00:00:00 2001 From: Joerg Lenhard Date: Mon, 11 Dec 2017 17:46:14 +0100 Subject: [PATCH 2/2] Export internal packages to the outside --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 0cd379a..a403691 100644 --- a/build.gradle +++ b/build.gradle @@ -6,4 +6,16 @@ targetCompatibility = 1.9 group = "org.jabref" version = "1.0.0" +compileJava { + options.encoding = 'UTF-8' + options.sourcepath = files(sourceSets.main.java.srcDirs) + options.compilerArgs.addAll([ + "--add-exports", + "javafx.base/com.sun.javafx.collections=customjfx" + ]) + options.compilerArgs.addAll([ + "--add-exports", + "javafx.graphics/com.sun.javafx.scene.input=customjfx" + ]) +} \ No newline at end of file