From 50ce3a4e379746a8a879196c1834e1977714eb50 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Tue, 5 Sep 2017 13:56:15 -0700 Subject: [PATCH] (refactor) Add module access info to test classes --- subprojects/testfx-core/testfx-core.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/subprojects/testfx-core/testfx-core.gradle b/subprojects/testfx-core/testfx-core.gradle index 269f1a663..21bdad41b 100644 --- a/subprojects/testfx-core/testfx-core.gradle +++ b/subprojects/testfx-core/testfx-core.gradle @@ -51,3 +51,14 @@ compileJava { } } +compileTestJava { + if (usingJava9) { + options.compilerArgs += [ + "--add-opens", "org.testfx.internal/org.testfx.service.adapter=ALL-UNNAMED", + "--add-opens", "java.base/java.lang=ALL-UNNAMED", + "--add-opens", "java.base/java.util=ALL-UNNAMED", + "--add-exports", "javafx.graphics/com.sun.glass.ui=ALL-UNNAMED" + ] + } +} +