aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'poi-examples/build.gradle')
-rw-r--r--poi-examples/build.gradle10
1 files changed, 3 insertions, 7 deletions
diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle
index 40101428ab..c6916d90ea 100644
--- a/poi-examples/build.gradle
+++ b/poi-examples/build.gradle
@@ -59,10 +59,11 @@ task compileJava9(type: JavaCompile) {
dependsOn 'compileJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
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,11 +71,6 @@ task compileJava9(type: JavaCompile) {
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
'--module-path', files(MODULE_COMPILE_PATH).asPath
]
-
-
- onlyIf {
- jdkVersion > 8
- }
}
task cacheJava9(type: Copy) {