diff options
Diffstat (limited to 'poi-ooxml-lite-agent')
-rw-r--r-- | poi-ooxml-lite-agent/build.gradle | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/poi-ooxml-lite-agent/build.gradle b/poi-ooxml-lite-agent/build.gradle index 168caf8bf3..45fcb762d8 100644 --- a/poi-ooxml-lite-agent/build.gradle +++ b/poi-ooxml-lite-agent/build.gradle @@ -42,9 +42,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() @@ -54,10 +56,6 @@ task compileJava9(type: JavaCompile) { '--module-path', sourceSets.main.compileClasspath.asPath ] } - - onlyIf { - jdkVersion > 8 - } } task cacheJava9(type: Copy) { |