From 78516f50dc46beee5b6deb1edd678a91eb128f79 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 27 Dec 2022 18:45:15 +0000 Subject: 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 --- poi-integration/build.gradle | 19 ++----------------- poi-integration/src/test/java9/module-info.class | Bin 685 -> 0 bytes 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 poi-integration/src/test/java9/module-info.class (limited to 'poi-integration') 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 Binary files a/poi-integration/src/test/java9/module-info.class and /dev/null differ -- cgit v1.2.3