build issues

This commit is contained in:
PJ Fanning 2025-11-15 11:34:52 +01:00
parent 323b5c8c6b
commit 16ecbc7d48
10 changed files with 28 additions and 28 deletions

View File

@ -737,7 +737,7 @@ task jenkinsLite(dependsOn: [
if (!f.exists()) { if (!f.exists()) {
println 'writing file ' + f.getAbsolutePath() println 'writing file ' + f.getAbsolutePath()
f.getParentFile().mkdirs() f.getParentFile().mkdirs()
new URL('https://ci-builds.apache.org/job/POI/job/POI-XMLBeans-DSL-1.11/lastSuccessfulBuild/artifact/build/xmlbeans-5.0.0.jar').withInputStream{ i -> f.withOutputStream{ it << i }} new URL('https://ci-builds.apache.org/job/POI/job/POI-XMLBeans-DSL-1.8/lastSuccessfulBuild/artifact/build/xmlbeans-5.0.0.jar').withInputStream{ i -> f.withOutputStream{ it << i }}
} }
}*/ }*/

View File

@ -53,8 +53,8 @@ tasks.register('compileJava9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()

View File

@ -63,8 +63,8 @@ tasks.register('compileJava9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.9 sourceCompatibility = 11
targetCompatibility = 1.9 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()
@ -80,8 +80,8 @@ tasks.register('compileTest9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.9 sourceCompatibility = 11
targetCompatibility = 1.9 targetCompatibility = 11
destinationDirectory = file(TEST9_OUT + VERSIONS9) destinationDirectory = file(TEST9_OUT + VERSIONS9)
source = file(TEST9_SRC) source = file(TEST9_SRC)
options.compilerArgs = [ options.compilerArgs = [

View File

@ -96,8 +96,8 @@ tasks.register('compileTest9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.9 sourceCompatibility = 11
targetCompatibility = 1.9 targetCompatibility = 11
destinationDirectory = file(TEST9_OUT + VERSIONS9) destinationDirectory = file(TEST9_OUT + VERSIONS9)
source = file(TEST9_SRC) source = file(TEST9_SRC)
options.compilerArgs = [ options.compilerArgs = [

View File

@ -60,8 +60,8 @@ tasks.register('compileJava9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()

View File

@ -42,8 +42,8 @@ tasks.register('compileJava9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()

View File

@ -93,8 +93,8 @@ task compileJava9(type: JavaCompile, dependsOn: 'compileJava') {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()

View File

@ -174,8 +174,8 @@ tasks.register('compileTest9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(TEST9_OUT + VERSIONS9) destinationDirectory = file(TEST9_OUT + VERSIONS9)
source = file(TEST9_SRC) source = file(TEST9_SRC)
options.compilerArgs = [ options.compilerArgs = [
@ -259,9 +259,9 @@ test {
doFirst { doFirst {
jvmArgs += [ jvmArgs += [
"-Xverify:all", '-Xverify:all',
"-XX:ErrorFile=../build/hs_err_pid%p.log", '-XX:ErrorFile=../build/hs_err_pid%p.log',
"-javaagent:${OOXML_LITE_AGENT}=${OOXML_LITE_REPORT}|${OOXML_LITE_INCLUDES}" "-javaagent:${OOXML_LITE_AGENT}=${OOXML_LITE_REPORT}|${OOXML_LITE_INCLUDES}",
'--add-modules', MODULE_NAME, '--add-modules', MODULE_NAME,
'--module-path', '../build/dist/maven/poi-ooxml-tests' + File.pathSeparator + files(TEST_MODULE_PATH).asPath, '--module-path', '../build/dist/maven/poi-ooxml-tests' + File.pathSeparator + files(TEST_MODULE_PATH).asPath,
] ]

View File

@ -58,8 +58,8 @@ tasks.register('compileJava9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()
@ -75,8 +75,8 @@ tasks.register('compileTest9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.11 sourceCompatibility = 11
targetCompatibility = 1.11 targetCompatibility = 11
destinationDirectory = file(TEST9_OUT + VERSIONS9) destinationDirectory = file(TEST9_OUT + VERSIONS9)
source = file(TEST9_SRC) source = file(TEST9_SRC)
options.compilerArgs = [ options.compilerArgs = [

View File

@ -85,8 +85,8 @@ tasks.register('compileJava9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.9 sourceCompatibility = 11
targetCompatibility = 1.9 targetCompatibility = 11
destinationDirectory = file(JAVA9_OUT + VERSIONS9) destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC) source = file(JAVA9_SRC)
classpath = files() classpath = files()
@ -102,8 +102,8 @@ tasks.register('compileTest9', JavaCompile) {
javaCompiler = javaToolchains.compilerFor { javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
} }
sourceCompatibility = 1.9 sourceCompatibility = 11
targetCompatibility = 1.9 targetCompatibility = 11
destinationDirectory = file(TEST9_OUT + VERSIONS9) destinationDirectory = file(TEST9_OUT + VERSIONS9)
source = file(TEST9_SRC) source = file(TEST9_SRC)
options.compilerArgs = [ options.compilerArgs = [