aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-10-29 08:52:46 +0000
committerPJ Fanning <fanningpj@apache.org>2022-10-29 08:52:46 +0000
commita806f69af112a54ca18593e274338570321ccc3c (patch)
treef266a3a3662d30728f9210990e76ddb00834beff /poi
parent9798625cb97bfab4cb58396544dce8438e74d345 (diff)
downloadpoi-a806f69af112a54ca18593e274338570321ccc3c.tar.gz
poi-a806f69af112a54ca18593e274338570321ccc3c.zip
jdk8 build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904914 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/poi/build.gradle b/poi/build.gradle
index ec0aa868e9..6879ef65ae 100644
--- a/poi/build.gradle
+++ b/poi/build.gradle
@@ -95,6 +95,7 @@ task compileJava9(type: JavaCompile) {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(jdkVersion)
+ if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
}
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC)
@@ -103,6 +104,10 @@ task compileJava9(type: JavaCompile) {
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
'--module-path', sourceSets.main.compileClasspath.asPath
]
+
+ onlyIf {
+ jdkVersion > 8
+ }
}
task cacheJava9(type: Copy) {