aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/build.gradle
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-03-19 13:17:53 +0000
committerPJ Fanning <fanningpj@apache.org>2023-03-19 13:17:53 +0000
commit17899fc75b27cfb8ca001dd580ba9549b03646e4 (patch)
tree8b3ec8df2a96d9fd0e89d4fb74597e691f247ec2 /poi-ooxml/build.gradle
parent9f0fe6139e9e3a490a7471961f259ffeb1341b2d (diff)
downloadpoi-17899fc75b27cfb8ca001dd580ba9549b03646e4.tar.gz
poi-17899fc75b27cfb8ca001dd580ba9549b03646e4.zip
temporary hack to build to see if the gradle toolchain logic is what is breaking all our https://ci-builds.apache.org/ builds for Java 8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908515 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/build.gradle')
-rw-r--r--poi-ooxml/build.gradle2
1 files changed, 2 insertions, 0 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index bb54b14bbb..73c5145cb9 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -152,6 +152,7 @@ compileJava {
task compileJava9(type: JavaCompile) {
dependsOn 'compileJava', ':poi:jar'
+ onlyIf {jdkVersion > 8}
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
@@ -169,6 +170,7 @@ task compileJava9(type: JavaCompile) {
task compileTest9(type: JavaCompile) {
dependsOn 'compileTestJava', ':poi:testJar'
+ onlyIf {jdkVersion > 8}
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))