From ca9cf3c6f83e06fe2504a01fff4bb7b53f44f577 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 22 Jan 2022 14:28:17 +0000 Subject: try to fix build for Java 9+ git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897343 13f79535-47bb-0310-9956-ffa450edef68 --- poi-scratchpad/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'poi-scratchpad') diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle index 704f33cb8e..917ae37673 100644 --- a/poi-scratchpad/build.gradle +++ b/poi-scratchpad/build.gradle @@ -90,6 +90,7 @@ task compileTest9(type: JavaCompile) { destinationDirectory = file(TEST9_OUT + VERSIONS9) source = file(TEST9_SRC) options.compilerArgs = [ + '--patch-module', "org.apache.poi.poi=${projectDir}/../poi/build/classes/java/main", '--patch-module', "${MODULE_NAME}=${(sourceSets.main.output.classesDirs + sourceSets.test.output.classesDirs).asPath}", '--module-path', files(TEST_MODULE_PATH).asPath ] @@ -175,14 +176,16 @@ test { systemProperties['junit.jupiter.execution.parallel.enabled'] = 'true' + /* doFirst { if (JavaVersion.current() != JavaVersion.VERSION_1_8) { jvmArgs += [ '--add-modules', MODULE_NAME, - '--module-path', '../build/dist/maven/poi-scratchpad-tests' + File.pathSeparator + files(TEST_MODULE_PATH).asPath, + '--module-path', '${projectDir}/../build/dist/maven/poi-scratchpad-tests' + File.pathSeparator + files(TEST_MODULE_PATH).asPath, ] } } + */ } publishing { -- cgit v1.2.3