diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-01-22 14:28:17 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-01-22 14:28:17 +0000 |
commit | ca9cf3c6f83e06fe2504a01fff4bb7b53f44f577 (patch) | |
tree | 2b7885e12a330ab0e1268e540865f1a2fd6b790c /poi-ooxml/build.gradle | |
parent | e0b84ef6efb807fd338727ec73afc86c6ffe24ac (diff) | |
download | poi-ca9cf3c6f83e06fe2504a01fff4bb7b53f44f577.tar.gz poi-ca9cf3c6f83e06fe2504a01fff4bb7b53f44f577.zip |
try to fix build for Java 9+
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897343 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/build.gradle')
-rw-r--r-- | poi-ooxml/build.gradle | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index be0b51868c..b15b104ea8 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -204,6 +204,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 ] @@ -320,12 +321,14 @@ test { "-XX:ErrorFile=../build/hs_err_pid%p.log", "-javaagent:${OOXML_LITE_AGENT}=${OOXML_LITE_REPORT}|${OOXML_LITE_INCLUDES}" ] + /* if (JavaVersion.current() != JavaVersion.VERSION_1_8) { jvmArgs += [ '--add-modules', MODULE_NAME, '--module-path', '../build/dist/maven/poi-ooxml-tests' + File.pathSeparator + files(TEST_MODULE_PATH).asPath, ] } + */ } } |