mirror of https://github.com/apache/poi.git
rebuild module-info.class files even if Java8 used
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906207 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
664fe668b7
commit
edee60d87a
|
@ -59,10 +59,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
|
dependsOn 'compileJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -70,11 +71,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
||||||
'--module-path', files(MODULE_COMPILE_PATH).asPath
|
'--module-path', files(MODULE_COMPILE_PATH).asPath
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
|
|
@ -69,9 +69,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
|
dependsOn 'compileJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -79,10 +81,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
||||||
'--module-path', files(MAIN_MODULE_PATH).asPath
|
'--module-path', files(MAIN_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
@ -96,9 +94,11 @@ task compileTest9(type: JavaCompile) {
|
||||||
dependsOn 'compileTestJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
|
dependsOn 'compileTestJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
||||||
source = file(TEST9_SRC)
|
source = file(TEST9_SRC)
|
||||||
options.compilerArgs = [
|
options.compilerArgs = [
|
||||||
|
@ -106,10 +106,6 @@ task compileTest9(type: JavaCompile) {
|
||||||
'--module-path', files(TEST_MODULE_PATH).asPath
|
'--module-path', files(TEST_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -107,9 +107,11 @@ task compileTest9(type: JavaCompile) {
|
||||||
dependsOn 'compileTestJava', ':poi-ooxml:testJar', ':poi-scratchpad:testJar', ':poi-examples:jar'
|
dependsOn 'compileTestJava', ':poi-ooxml:testJar', ':poi-scratchpad:testJar', ':poi-examples:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
||||||
source = file(TEST9_SRC)
|
source = file(TEST9_SRC)
|
||||||
options.compilerArgs = [
|
options.compilerArgs = [
|
||||||
|
@ -117,10 +119,6 @@ task compileTest9(type: JavaCompile) {
|
||||||
'--module-path', files(MODULE_COMPILE_PATH).asPath
|
'--module-path', files(MODULE_COMPILE_PATH).asPath
|
||||||
]
|
]
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -60,9 +60,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava'
|
dependsOn 'compileJava'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -70,10 +72,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.asPath}",
|
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.asPath}",
|
||||||
'--module-path', files(MAIN_MODULE_PATH).asPath
|
'--module-path', files(MAIN_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
|
|
@ -42,9 +42,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava'
|
dependsOn 'compileJava'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -54,10 +56,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--module-path', sourceSets.main.compileClasspath.asPath
|
'--module-path', sourceSets.main.compileClasspath.asPath
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
|
|
@ -101,9 +101,11 @@ sourcesJar.dependsOn 'compileOoxmlLite'
|
||||||
|
|
||||||
task compileJava9(type: JavaCompile, dependsOn: 'compileJava') {
|
task compileJava9(type: JavaCompile, dependsOn: 'compileJava') {
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -113,10 +115,6 @@ task compileJava9(type: JavaCompile, dependsOn: 'compileJava') {
|
||||||
'--module-path', files(MAIN_MODULE_PATH).asPath
|
'--module-path', files(MAIN_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy, dependsOn: 'compileJava9') {
|
task cacheJava9(type: Copy, dependsOn: 'compileJava9') {
|
||||||
|
|
|
@ -180,9 +180,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava', ':poi:jar'
|
dependsOn 'compileJava', ':poi:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -190,10 +192,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
||||||
'--module-path', files(MAIN_MODULE_PATH).asPath
|
'--module-path', files(MAIN_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
@ -207,9 +205,11 @@ task compileTest9(type: JavaCompile) {
|
||||||
dependsOn 'compileTestJava', ':poi:testJar'
|
dependsOn 'compileTestJava', ':poi:testJar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
||||||
source = file(TEST9_SRC)
|
source = file(TEST9_SRC)
|
||||||
options.compilerArgs = [
|
options.compilerArgs = [
|
||||||
|
@ -217,10 +217,6 @@ task compileTest9(type: JavaCompile) {
|
||||||
'--module-path', files(TEST_MODULE_PATH).asPath
|
'--module-path', files(TEST_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,9 +65,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava', ':poi:jar'
|
dependsOn 'compileJava', ':poi:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -75,10 +77,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
||||||
'--module-path', files(MAIN_MODULE_PATH).asPath
|
'--module-path', files(MAIN_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
@ -92,9 +90,11 @@ task compileTest9(type: JavaCompile) {
|
||||||
dependsOn 'compileTestJava', ':poi:jar'
|
dependsOn 'compileTestJava', ':poi:jar'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
||||||
source = file(TEST9_SRC)
|
source = file(TEST9_SRC)
|
||||||
options.compilerArgs = [
|
options.compilerArgs = [
|
||||||
|
@ -102,10 +102,6 @@ task compileTest9(type: JavaCompile) {
|
||||||
'--module-path', files(TEST_MODULE_PATH).asPath
|
'--module-path', files(TEST_MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -94,9 +94,11 @@ task compileJava9(type: JavaCompile) {
|
||||||
dependsOn 'compileJava'
|
dependsOn 'compileJava'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
|
||||||
source = file(JAVA9_SRC)
|
source = file(JAVA9_SRC)
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
@ -104,10 +106,6 @@ task compileJava9(type: JavaCompile) {
|
||||||
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
'--patch-module', "${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
|
||||||
'--module-path', sourceSets.main.compileClasspath.asPath
|
'--module-path', sourceSets.main.compileClasspath.asPath
|
||||||
]
|
]
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cacheJava9(type: Copy) {
|
task cacheJava9(type: Copy) {
|
||||||
|
@ -121,10 +119,11 @@ task compileTest9(type: JavaCompile) {
|
||||||
dependsOn 'compileTestJava'
|
dependsOn 'compileTestJava'
|
||||||
|
|
||||||
javaCompiler = javaToolchains.compilerFor {
|
javaCompiler = javaToolchains.compilerFor {
|
||||||
languageVersion = JavaLanguageVersion.of(jdkVersion)
|
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
|
||||||
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
|
||||||
}
|
}
|
||||||
|
sourceCompatibility = 1.9
|
||||||
|
targetCompatibility = 1.9
|
||||||
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
destinationDirectory = file(TEST9_OUT + VERSIONS9)
|
||||||
source = file(TEST9_SRC)
|
source = file(TEST9_SRC)
|
||||||
options.compilerArgs = [
|
options.compilerArgs = [
|
||||||
|
@ -132,10 +131,6 @@ task compileTest9(type: JavaCompile) {
|
||||||
'--module-path', files(MODULE_PATH).asPath
|
'--module-path', files(MODULE_PATH).asPath
|
||||||
]
|
]
|
||||||
classpath = files()
|
classpath = files()
|
||||||
|
|
||||||
onlyIf {
|
|
||||||
jdkVersion > 8
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue