aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml-full/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'poi-ooxml-full/build.gradle')
-rw-r--r--poi-ooxml-full/build.gradle8
1 files changed, 3 insertions, 5 deletions
diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle
index 4f857994c0..4a29e38d3f 100644
--- a/poi-ooxml-full/build.gradle
+++ b/poi-ooxml-full/build.gradle
@@ -60,9 +60,11 @@ task compileJava9(type: JavaCompile) {
dependsOn 'compileJava'
javaCompiler = javaToolchains.compilerFor {
- languageVersion = JavaLanguageVersion.of(jdkVersion)
+ languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
}
+ sourceCompatibility = 1.9
+ targetCompatibility = 1.9
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC)
classpath = files()
@@ -70,10 +72,6 @@ task compileJava9(type: JavaCompile) {
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.asPath}",
'--module-path', files(MAIN_MODULE_PATH).asPath
]
-
- onlyIf {
- jdkVersion > 8
- }
}
task cacheJava9(type: Copy) {