aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-12-27 18:45:15 +0000
committerPJ Fanning <fanningpj@apache.org>2022-12-27 18:45:15 +0000
commit78516f50dc46beee5b6deb1edd678a91eb128f79 (patch)
treed1c799b72679423205d6d856b7718a089c53efa5
parent98d51e41398b658df158492a9b67a4b5d2ff2983 (diff)
downloadpoi-78516f50dc46beee5b6deb1edd678a91eb128f79.tar.gz
poi-78516f50dc46beee5b6deb1edd678a91eb128f79.zip
try to get rid of cached module-info classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906232 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.gradle26
-rw-r--r--poi-examples/build.gradle19
-rw-r--r--poi-examples/src/main/java9/module-info.classbin979 -> 0 bytes
-rw-r--r--poi-excelant/build.gradle38
-rw-r--r--poi-excelant/src/main/java9/module-info.classbin306 -> 0 bytes
-rw-r--r--poi-excelant/src/test/java9/module-info.classbin373 -> 0 bytes
-rw-r--r--poi-integration/build.gradle19
-rw-r--r--poi-integration/src/test/java9/module-info.classbin685 -> 0 bytes
-rw-r--r--poi-ooxml-full/build.gradle17
-rw-r--r--poi-ooxml-full/src/main/java9/module-info.classbin2611 -> 0 bytes
-rw-r--r--poi-ooxml-lite-agent/build.gradle17
-rw-r--r--poi-ooxml-lite-agent/src/main/java9/module-info.classbin219 -> 0 bytes
-rw-r--r--poi-ooxml-lite/build.gradle15
-rw-r--r--poi-ooxml-lite/src/main/java9/module-info.classbin1867 -> 0 bytes
-rw-r--r--poi-ooxml/build.gradle34
-rw-r--r--poi-ooxml/src/main/java9/module-info.classbin3753 -> 0 bytes
-rw-r--r--poi-ooxml/src/test/java9/module-info.classbin5140 -> 0 bytes
-rw-r--r--poi-scratchpad/build.gradle34
-rw-r--r--poi-scratchpad/src/main/java9/module-info.classbin2637 -> 0 bytes
-rw-r--r--poi-scratchpad/src/test/java9/module-info.classbin3284 -> 0 bytes
-rw-r--r--poi/build.gradle40
-rw-r--r--poi/src/main/java9/module-info.classbin3386 -> 0 bytes
-rw-r--r--poi/src/test/java9/module-info.classbin4199 -> 0 bytes
23 files changed, 32 insertions, 227 deletions
diff --git a/build.gradle b/build.gradle
index 3a7c4d7a8e..c37eb38e37 100644
--- a/build.gradle
+++ b/build.gradle
@@ -821,19 +821,19 @@ task soLinkCheck() {
}
var srcDep = [
- ':poi:cacheJava9',
- ':poi:cacheTest9',
- ':poi-ooxml-full:cacheJava9',
- ':poi-ooxml-lite-agent:cacheJava9',
- ':poi-ooxml:cacheJava9',
- ':poi-ooxml:cacheTest9',
- ':poi-scratchpad:cacheJava9',
- ':poi-scratchpad:cacheTest9',
- ':poi-excelant:cacheJava9',
- ':poi-excelant:cacheTest9',
- ':poi-examples:cacheJava9',
- ':poi-integration:cacheTest9',
- ':poi-ooxml-lite:cacheJava9',
+ ':poi:compileJava9',
+ ':poi:compileTest9',
+ ':poi-ooxml-full:compileJava9',
+ ':poi-ooxml-lite-agent:compileJava9',
+ ':poi-ooxml:compileJava9',
+ ':poi-ooxml:compileTest9',
+ ':poi-scratchpad:compileJava9',
+ ':poi-scratchpad:compileTest9',
+ ':poi-excelant:compileJava9',
+ ':poi-excelant:compileTest9',
+ ':poi-examples:compileJava9',
+ ':poi-integration:compileTest9',
+ ':poi-ooxml-lite:compileJava9',
':poi-ooxml-lite:generateModuleInfo'
]
diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle
index 855ba38b03..8ce4abd87e 100644
--- a/poi-examples/build.gradle
+++ b/poi-examples/build.gradle
@@ -19,9 +19,7 @@ import java.util.regex.Pattern
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
}
}
@@ -72,24 +70,11 @@ task compileJava9(type: JavaCompile) {
]
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
jar {
- dependsOn cacheJava9
+ dependsOn compileJava9
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
manifest {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
diff --git a/poi-examples/src/main/java9/module-info.class b/poi-examples/src/main/java9/module-info.class
deleted file mode 100644
index bd60029c1c..0000000000
--- a/poi-examples/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle
index 8c67febfd0..1b394fe994 100644
--- a/poi-excelant/build.gradle
+++ b/poi-excelant/build.gradle
@@ -23,14 +23,10 @@ configurations {
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
}
test {
- if (jdkVersion > 8) {
- output.dir(TEST9_OUT, builtBy: 'cacheTest9')
- }
+ output.dir(TEST9_OUT, builtBy: 'compileTest9')
}
}
@@ -82,13 +78,6 @@ task compileJava9(type: JavaCompile) {
]
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
task compileTest9(type: JavaCompile) {
dependsOn 'compileTestJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
@@ -107,24 +96,11 @@ task compileTest9(type: JavaCompile) {
}
-task cacheTest9(type: Copy) {
- dependsOn 'compileTest9'
-
- from(file(TEST9_OUT + VERSIONS9))
- into(TEST9_SRC)
-}
-
jar {
- dependsOn cacheJava9
+ dependsOn compileJava9
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
manifest {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
@@ -146,19 +122,13 @@ sourcesJar {
// Create a separate jar for test-code to depend on it in other projects
// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
-task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ] ) {
+task testJar(type: Jar, dependsOn: [ testClasses, compileTest9 ] ) {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}-tests")
classifier 'tests'
// ignore second module-info.class from main
duplicatesStrategy = 'exclude'
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from TEST9_SRC include '*.class'
- }
- }
-
from sourceSets.test.output + sourceSets.main.output
manifest {
diff --git a/poi-excelant/src/main/java9/module-info.class b/poi-excelant/src/main/java9/module-info.class
deleted file mode 100644
index 4df3dfdf05..0000000000
--- a/poi-excelant/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-excelant/src/test/java9/module-info.class b/poi-excelant/src/test/java9/module-info.class
deleted file mode 100644
index 281315a4d4..0000000000
--- a/poi-excelant/src/test/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-integration/build.gradle b/poi-integration/build.gradle
index 94db71b5aa..9b46ca3940 100644
--- a/poi-integration/build.gradle
+++ b/poi-integration/build.gradle
@@ -29,9 +29,7 @@ configurations {
sourceSets {
test {
- if (jdkVersion > 8) {
- output.dir(TEST9_OUT, builtBy: 'cacheTest9')
- }
+ output.dir(TEST9_OUT, builtBy: 'compileTest9')
if (IBMVM) {
java {
exclude '**/HeapDump**'
@@ -121,13 +119,6 @@ task compileTest9(type: JavaCompile) {
}
-task cacheTest9(type: Copy) {
- dependsOn 'compileTest9'
-
- from(file(TEST9_OUT + VERSIONS9))
- into(TEST9_SRC)
-}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
@@ -138,19 +129,13 @@ jar {
// Create a separate jar for test-code to depend on it in other projects
// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
-task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ] ) {
+task testJar(type: Jar, dependsOn: [ testClasses, compileTest9 ] ) {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}-tests")
classifier 'tests'
// ignore second module-info.class from main
duplicatesStrategy = 'exclude'
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from TEST9_SRC include '*.class'
- }
- }
-
from sourceSets.test.output + sourceSets.main.output
manifest {
diff --git a/poi-integration/src/test/java9/module-info.class b/poi-integration/src/test/java9/module-info.class
deleted file mode 100644
index 1efde42739..0000000000
--- a/poi-integration/src/test/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle
index 03e6bb335e..ee9edd81d5 100644
--- a/poi-ooxml-full/build.gradle
+++ b/poi-ooxml-full/build.gradle
@@ -26,9 +26,7 @@ sourceSets {
// TypeSystemHolder.class is in the resources
output.dir(BEANS_RES, builtBy: 'generate_beans')
compileClasspath += files(BEANS_RES)
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
java {
srcDirs = [BEANS_SRC]
}
@@ -73,13 +71,6 @@ task compileJava9(type: JavaCompile) {
]
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
task copy_xsds(type: Copy) {
from ('src/main/xmlschema/org/apache/poi/xdgf')
from ('src/main/xmlschema/org/apache/poi/schemas') {
@@ -142,12 +133,6 @@ task sourceJar(type: Jar) {
jar {
dependsOn 'sourceJar'
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
manifest {
attributes ('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
diff --git a/poi-ooxml-full/src/main/java9/module-info.class b/poi-ooxml-full/src/main/java9/module-info.class
deleted file mode 100644
index 365080ac1b..0000000000
--- a/poi-ooxml-full/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-ooxml-lite-agent/build.gradle b/poi-ooxml-lite-agent/build.gradle
index f6cfff98a3..7ce9832275 100644
--- a/poi-ooxml-lite-agent/build.gradle
+++ b/poi-ooxml-lite-agent/build.gradle
@@ -17,9 +17,7 @@
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
}
}
@@ -57,22 +55,9 @@ task compileJava9(type: JavaCompile) {
}
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
manifest {
attributes (
'Automatic-Module-Name' : MODULE_NAME,
diff --git a/poi-ooxml-lite-agent/src/main/java9/module-info.class b/poi-ooxml-lite-agent/src/main/java9/module-info.class
deleted file mode 100644
index d445b14e8a..0000000000
--- a/poi-ooxml-lite-agent/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle
index 7286d4d07e..28879d6fa5 100644
--- a/poi-ooxml-lite/build.gradle
+++ b/poi-ooxml-lite/build.gradle
@@ -22,9 +22,7 @@ final String BEANS_RES = "${buildDir}/generated-resources"
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
compileClasspath += files(BEANS_RES)
java {
srcDirs += BEANS_SRC
@@ -116,11 +114,6 @@ task compileJava9(type: JavaCompile, dependsOn: 'compileJava') {
}
}
-task cacheJava9(type: Copy, dependsOn: 'compileJava9') {
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
@@ -138,12 +131,6 @@ jar {
}
}
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
// ignore second module-info.class from poi-ooxml-full
// duplicatesStrategy = 'exclude'
includeEmptyDirs = false
diff --git a/poi-ooxml-lite/src/main/java9/module-info.class b/poi-ooxml-lite/src/main/java9/module-info.class
deleted file mode 100644
index 61cdb0a1b8..0000000000
--- a/poi-ooxml-lite/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index eb585bec80..1c2ffca5c9 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -35,14 +35,10 @@ configurations {
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
}
test {
- if (jdkVersion > 8) {
- output.dir(TEST9_OUT, builtBy: 'cacheTest9')
- }
+ output.dir(TEST9_OUT, builtBy: 'compileTest9')
}
}
@@ -175,13 +171,6 @@ task compileJava9(type: JavaCompile) {
]
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
task compileTest9(type: JavaCompile) {
dependsOn 'compileTestJava', ':poi:testJar'
@@ -200,22 +189,9 @@ task compileTest9(type: JavaCompile) {
}
-task cacheTest9(type: Copy) {
- dependsOn 'compileTest9'
-
- from(file(TEST9_OUT + VERSIONS9))
- into(TEST9_SRC)
-}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
manifest {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
@@ -230,12 +206,6 @@ task testJar(type: Jar, dependsOn: testClasses) {
// ignore second module-info.class from main
duplicatesStrategy = 'exclude'
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from TEST9_SRC include '*.class'
- }
- }
-
from sourceSets.test.output + sourceSets.main.output
manifest {
diff --git a/poi-ooxml/src/main/java9/module-info.class b/poi-ooxml/src/main/java9/module-info.class
deleted file mode 100644
index 505565a8ca..0000000000
--- a/poi-ooxml/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-ooxml/src/test/java9/module-info.class b/poi-ooxml/src/test/java9/module-info.class
deleted file mode 100644
index 0585f8f7e5..0000000000
--- a/poi-ooxml/src/test/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle
index fcce89bc2e..9caafbd3f4 100644
--- a/poi-scratchpad/build.gradle
+++ b/poi-scratchpad/build.gradle
@@ -24,14 +24,10 @@ configurations {
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
}
test {
- if (jdkVersion > 8) {
- output.dir(TEST9_OUT, builtBy: 'cacheTest9')
- }
+ output.dir(TEST9_OUT, builtBy: 'compileTest9')
}
}
@@ -78,13 +74,6 @@ task compileJava9(type: JavaCompile) {
]
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
task compileTest9(type: JavaCompile) {
dependsOn 'compileTestJava', ':poi:jar'
@@ -103,22 +92,9 @@ task compileTest9(type: JavaCompile) {
}
-task cacheTest9(type: Copy) {
- dependsOn 'compileTest9'
-
- from(file(TEST9_OUT + VERSIONS9))
- into(TEST9_SRC)
-}
-
jar {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
-
manifest {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
@@ -133,12 +109,6 @@ task testJar(type: Jar, dependsOn: testClasses) {
// ignore second module-info.class from main
duplicatesStrategy = 'exclude'
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from TEST9_SRC include '*.class'
- }
- }
-
from sourceSets.test.output + sourceSets.main.output
manifest {
diff --git a/poi-scratchpad/src/main/java9/module-info.class b/poi-scratchpad/src/main/java9/module-info.class
deleted file mode 100644
index 9a3a927772..0000000000
--- a/poi-scratchpad/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi-scratchpad/src/test/java9/module-info.class b/poi-scratchpad/src/test/java9/module-info.class
deleted file mode 100644
index 21de811871..0000000000
--- a/poi-scratchpad/src/test/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi/build.gradle b/poi/build.gradle
index ab2590b76e..c67e02d86a 100644
--- a/poi/build.gradle
+++ b/poi/build.gradle
@@ -24,18 +24,14 @@ configurations {
sourceSets {
main {
- if (jdkVersion > 8) {
- output.dir(JAVA9_OUT, builtBy: 'cacheJava9')
- }
+ output.dir(JAVA9_OUT, builtBy: 'compileJava9')
java {
// also include the generated Version.java
srcDirs += 'build/generated-sources'
}
}
test {
- if (jdkVersion > 8) {
- output.dir(TEST9_OUT, builtBy: 'cacheTest9')
- }
+ output.dir(TEST9_OUT, builtBy: 'compileTest9')
}
}
@@ -46,7 +42,6 @@ dependencies {
api "commons-io:commons-io:${commonsIoVersion}"
api 'com.zaxxer:SparseBitSet:1.2'
api "org.apache.logging.log4j:log4j-api:${log4jVersion}"
- // implementation 'javax.activation:activation:1.1.1'
testImplementation 'org.reflections:reflections:0.10.2'
testImplementation 'org.apache.ant:ant:1.10.12'
@@ -107,13 +102,6 @@ task compileJava9(type: JavaCompile) {
]
}
-task cacheJava9(type: Copy) {
- dependsOn 'compileJava9'
-
- from(file(JAVA9_OUT + VERSIONS9))
- into(JAVA9_SRC)
-}
-
task compileTest9(type: JavaCompile) {
dependsOn 'compileTestJava'
@@ -131,22 +119,8 @@ task compileTest9(type: JavaCompile) {
classpath = files()
}
-
-task cacheTest9(type: Copy) {
- dependsOn 'compileTest9'
-
- from(file(TEST9_OUT + VERSIONS9))
- into(TEST9_SRC)
-}
-
jar {
- dependsOn cacheJava9
-
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from JAVA9_SRC include '*.class'
- }
- }
+ dependsOn compileJava9
manifest {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
@@ -155,19 +129,13 @@ jar {
// Create a separate jar for test-code to depend on it in other projects
// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
-task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ]) {
+task testJar(type: Jar, dependsOn: [ testClasses, compileTest9 ]) {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}-tests")
classifier 'tests'
// ignore second module-info.class from main
duplicatesStrategy = 'exclude'
- if (jdkVersion == 8) {
- into('META-INF/versions/9') {
- from TEST9_SRC include '*.class'
- }
- }
-
from sourceSets.test.output + sourceSets.main.output
manifest {
diff --git a/poi/src/main/java9/module-info.class b/poi/src/main/java9/module-info.class
deleted file mode 100644
index a0332da1c1..0000000000
--- a/poi/src/main/java9/module-info.class
+++ /dev/null
Binary files differ
diff --git a/poi/src/test/java9/module-info.class b/poi/src/test/java9/module-info.class
deleted file mode 100644
index 7e8007f777..0000000000
--- a/poi/src/test/java9/module-info.class
+++ /dev/null
Binary files differ