From 78516f50dc46beee5b6deb1edd678a91eb128f79 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 27 Dec 2022 18:45:15 +0000 Subject: [PATCH] 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 --- build.gradle | 26 ++++++------ poi-examples/build.gradle | 19 +-------- poi-examples/src/main/java9/module-info.class | Bin 979 -> 0 bytes poi-excelant/build.gradle | 38 ++--------------- poi-excelant/src/main/java9/module-info.class | Bin 306 -> 0 bytes poi-excelant/src/test/java9/module-info.class | Bin 373 -> 0 bytes poi-integration/build.gradle | 19 +-------- .../src/test/java9/module-info.class | Bin 685 -> 0 bytes poi-ooxml-full/build.gradle | 17 +------- .../src/main/java9/module-info.class | Bin 2611 -> 0 bytes poi-ooxml-lite-agent/build.gradle | 17 +------- .../src/main/java9/module-info.class | Bin 219 -> 0 bytes poi-ooxml-lite/build.gradle | 15 +------ .../src/main/java9/module-info.class | Bin 1867 -> 0 bytes poi-ooxml/build.gradle | 34 +-------------- poi-ooxml/src/main/java9/module-info.class | Bin 3753 -> 0 bytes poi-ooxml/src/test/java9/module-info.class | Bin 5140 -> 0 bytes poi-scratchpad/build.gradle | 34 +-------------- .../src/main/java9/module-info.class | Bin 2637 -> 0 bytes .../src/test/java9/module-info.class | Bin 3284 -> 0 bytes poi/build.gradle | 40 ++---------------- poi/src/main/java9/module-info.class | Bin 3386 -> 0 bytes poi/src/test/java9/module-info.class | Bin 4199 -> 0 bytes 23 files changed, 32 insertions(+), 227 deletions(-) delete mode 100644 poi-examples/src/main/java9/module-info.class delete mode 100644 poi-excelant/src/main/java9/module-info.class delete mode 100644 poi-excelant/src/test/java9/module-info.class delete mode 100644 poi-integration/src/test/java9/module-info.class delete mode 100644 poi-ooxml-full/src/main/java9/module-info.class delete mode 100644 poi-ooxml-lite-agent/src/main/java9/module-info.class delete mode 100644 poi-ooxml-lite/src/main/java9/module-info.class delete mode 100644 poi-ooxml/src/main/java9/module-info.class delete mode 100644 poi-ooxml/src/test/java9/module-info.class delete mode 100644 poi-scratchpad/src/main/java9/module-info.class delete mode 100644 poi-scratchpad/src/test/java9/module-info.class delete mode 100644 poi/src/main/java9/module-info.class delete mode 100644 poi/src/test/java9/module-info.class 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 bd60029c1c7f655c74d19b007767bbcdc49de05b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 979 zcmb7@$xeho5QhIAml^j_%6;F)9h`&l>dBiYpPYK|TGz!fqzRg2(67)K;d#@j~!tj-p9IQB4 zRj9Yy?y1{8cd+JQ-N6Q7ldwhDChQP)2`$1NVV`h7I3yeqjtM6Om*5dj6~_9SD9p#{ zovRb=ca59GfolpKC84njBVPl!H`?-G^v4y)MHDJ5{wZ5O)tTQ-^sPce9v9mx+q~}{ z9{2EmdU$^Nlw=AkWqLQUohsRe)pEr0QR(K^c0BW7dRcBw%Apv3qgJK6&saY5W5QjR z%J#9G>{hwxb>cM2L;mpV6{c?Xm44|6c@|X3g~V2xOYyH<#BH 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 4df3dfdf05d5de17ac2ec327ad609a0b4fa77a1e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 306 zcmZ`#OAY}+5Pda+@&ENC5*sJbZ4%-Jc2-W%Mq{LDF-9z%%fbO1O0>2h61{k@>UGtt zRNWuf8-Nj5fGVLpGua_llSC^*b88lvR{dnRG<+jZl2DjBiJ`_&Cj?Q%2Rs@xG#Hv8 zS|Qqm%2ywuV-71W_cC59zBdV1=U8dEI}%DSPd=Bao#i_v{HZnOyw!xRmBrgaSPPM+ w;^Wf$|0%L#qAvj14d2g$X9EvDa+Zh4JK0C!0t6_!tmM!`*>T08y^LcEPyUZX#Q*>R 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 281315a4d42f27a1dcffaa20eb202f81637936f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 373 zcmZ{gT}}cq6h^-b4v6?m2Qa?40^7udgeCamBI;12WIAo89m6B*^1%hTC}UepG#dMG za_@I9?yuJZgU_QhdVen{IU9A|-87>$u8Lk*6gkr&${GNf8C`(KkW`wcHyLY-- zTf*G7&s;iLZ4`G_bG55fEt^0XZRLyPPtq$wKPTm{U2AuyCQMVj?HU~-oervv4{E~o z-`vSo8c(>1BXO{bXcgXzZ}IK_L(v5tjp_QA(bY1nZEJXCjj@g20~9~za0tCvJfNT3 c0!RB)6bTq)4kM2-%Ix7JXXDJD9pN-(pQx=?MgRZ+ 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 1efde427394e78c2a33ce553f46c28d6cd172659..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 685 zcmZ9K+foxT7{~u9LOE5DfFP)N1P^1%cFO1zc;}T*kY+=hlHKeiS*E??xxDZJd??3n zvvp>1FMeOX^I`V)pP#<~T;Wq6Ck)#^ToilYC|ntYa@J}U z4ZX(Ds$rMQZ1DX(b6%z zyEVD?s~zwAZp?yVzp1EPu4l3ibU3*fwZX&ooldV%F1}{d_lQsy*q%> zPttxp^ytyU8Xl0eSWo5wHtv8vHc8vUHgN~Li38$8JR 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 365080ac1b98ca2324d34968260507aed1e24b6d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2611 zcmb7`TXz#T5XWbrB~UJ_HaU=KSF4=t_9N_N zJDL)35aE1cGntvhS#NtmP6Z{+7Alyo8Je&m;A4dL_J+3CGl`a|Q|l)0%SpS{T9K(y zeWx-3pCFv8^wX0>QzDHW6PfCl9|Ar_xKJrr*mdn_gYqEYD8ijeV_!I}Qa{i-WW$*I z;))D|IHyx`%yb^Sfa3^v>&diR|C4D8_#9!OQfF+uv7AO*X3FFOP9e-!x~yB53OIw% ze6QJ5IC{jhpGUY<=@XA~nU1pWO<%xygyY+rkE7a`q(%iN%L}$@o4g~yIU0U02rPD)t zqHOL5rl3VUMz~ftxTho4>2w!!-kUAi{*G|9!goSHGG3~_o+e5UfC*~&)bw*zwt+vY8`c*8 zEvNJs!m${9y~Fw~YU!(zI&?~}%qsw-A4BCI!fqNKfe+v;P3(p}uj2e(9(@$Q!bLd1 zpNE)-nMas{`5E&V^91uG^EC4;^BnUF=2y&%%&(c>GMmg6v&~#$E;Cn{SDDwDH<`DY gcbRL<2h8u7KQJFLe_}pi{>psDe9nBq{FBLe3z_IAp8x;= 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 d445b14e8af144ec4261ddb4cd9efcccb7e8bc6c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 219 zcmXAjJraU26ofaTAmUFE8*gA^QrUX}&)@`!7zYRg!I6%0S$F^s<(Pz5?0mb$H}Cs< ze*he@jxZ+(&pPW0NfA>lC=!b07Au0J^!q_oH%+k9P0mCuu6N05t(exYvbYq=NP_qw zo`R*KwY>4Hs@61JDJw%jD`{BT8<}=l)-#d&)%p17 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 61cdb0a1b8ed9ad1d72863186c161d73fa319cde..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1867 zcmb7_*>ck`6o!9M=t9{eXbUZLVJpxmOIy0oQcB^D8D?O(S8XK`#Foc$()6y+#RU(* z6;H$HLy^{{H?0z#86<;UUB52jh3zs)R=+JTBo$2~RneIi7Jm z=Xk-f!cpcB92Jf#M~$P-vC6T=vCi?5V}oOpV~b;(;}ypa$1cZfjy;Yy9Qzz^ISx49 zF-!)OYek0*!!T>&W?4qkYpHT%blI3*&@Njy4Wwn5_$s@yd?>AAD4jBOMu$p<&SIP_ z+?-*_Gl2-S7aMCDiRcFr?%zlz`cSuZa?DU0ZeB#v`wYvuHtAZ{-CCMfHyLJz+ji3( zTy|S5vTg|1jlmXDSA;#bi3$WwTwUkbxbgT7q->foJ zQXdnk(Dk%o;y@;LP)9#-(5C*Z3$G>P#I>}5%b=yAfK%3qB55M+C7sx*cBeoZ8^ucc zwxv{Zkm-u+{$t6x$F6xY^uIG+(n`j+5V)Pq0BTs zojM=Y>3zi=^G)H-uJ3M}6M(tTO!i~A;2wTq1oLhj!Nn6d;1bP7(?`r 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 505565a8cae63f9e96062fee72b09e2483fa7a26..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3753 zcma)w;si6%USvt!~ES)&Xj#Ea%-h1!8 z_l5#x!+ZQuJU)GLWLuJHllOj+?!JBB-6{Y4d-NCpY=ghMU=oAruCS^V-tBlL!C=ZD zy(uu6fhwe}8NOkbx#kN;6Qb@`6zF0wb=asGTG0r&0#g~xO9`T|0@E2NE#s(K-v%h z=wm*E`8fiPP+%d0nG-%;BP?%KU@?Ok1>cYX-{ph_9xAZ3-F-#aw&U3v{_PvaGWKdc z+qEqUtUyI7RzpC6RTCo?4@N@aE3g_XNHPI8tI`R_v|&36aV>+{G>)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test/java9/module-info.class deleted file mode 100644 index 0585f8f7e59072ded4a4c23fd805322ac17156cf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5140 zcmd5=_n#z16@P^sD>-zN(~;rey1AqWC?Lwg$(@{x!U+iU^wjk9ZckU+-7~w3h$mu> zfFdd?D&|CzsFH&xIR}+sAS&Sx;KO^bYkGRRdpLe%_w)IFyQ*GQz4z){VR!B8*Zu_n zmcVNhu%3X8yQTT0Dz0|O=mY&hxk9joai z(tr&GY*jKuV*@r8U=-@HYg0O5V!);Xb}BUFBU=eh)OFBea{;>+EL_#?sxYx!6$H{v zef(Z*z?K5Gt2Js#*8oGnrh|T6C+#dUU~2)JG$JQX@=up$z&>3kpa747T6|{ZZG!JS!>cuFqF9hHs^Yb-*V&G zC{+gRE?~!k>xmPlJty{+g+|!lfIS6lPXEsollNDM~?x3ElT5{6N4Cb=FNk zbZEE!sH#mKO`l3X9^-nF#?tBHt#86ltNSDKhj-o2>RN-g-HM%Q6Mj)Qyl&+q#e`pt zG08Jy!f)zgz)^GzzZ>I1CV)R=kEWsk@PKb8HorRTR^nrfmkQXsl*O`<-F94=V#Y78 zu201lwbA$SLN?)#Z$5o0yO9Z3RS%i`c(M5?G2ohPq4Cv-}w8R9!!#uMH`c19=fv{n zr!h7eTa0bS4&x+az!)+{j4@-%*k_z!Je~0j#xoh$FrLMDHsj|RzsUGy#;-Ddo$;HD z=Q4ha@qES$7{AAOA>$7jFJk-&5$47YbF&^ unRG}@N+c#N5|bK 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 9a3a927772b8f5de3a9b219c58fbbe6387a97ed6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2637 zcmai$X@A>95XK*IRFt+H)s)_CC**|q=v=g+?YT*V(Y-mTRSJj;DFI@YhJ~YsSvODv3#Uzr+Aed?FVlRE?v-U8b^0Y|+=v%+P4Rek z6z^m`o>q!7S6)&WqG@$%HK$D8oMx|7IlG@R$!gnISs8J~Eu1hJ_+h`d#bP6sVP;B& zXGf{%4Vo#nR*Ec740&kDPkRHE^GfIFQ+YOaMf>*)m2+3Bc+`)L&||GpBke1itJ~_V zY1JdS+{u)wNW)~q&6S_#-0jVzSqyS-XiAEusYTb5s`7QySS=aqpLI<2=h-=}tCi}d zh9YTwT%?716)MfW<9DKx%g{J8MLZ7N=pwD`6{wzNsKu#OHF|WUPkPk&f~hh#c0j+N z6Gwct=xb`GEwnVw_`+PxEqQrao@U&fk!}EEgnk)u<24so%rti63>ArK4|#UZ9*W|X z-nbW=@!0b}t10@VnvMHL2gtmf&k|?a*bK$$XeV7BS~yp)+N?nq_f7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m;T6Iy~4c?G8aaN!H zZ}Mh$xU>2+FnI%T^#88TpM!0{_E~JVpSy6=1|N1{TyZBKQ8L_RxLfgN>@gg(ktyso zzQyoX!`lpRH{54fHWb7ChIbeqFg$2@$ndb?5yPW~#|)1fo-iCYywmWc;a!HO4DU8P zZFrC28N+)G&l=umc)#IWQ9AkzmjogmW-GTk844>BDg(-ZQgF4Gj1 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 a0332da1c11c6fdacf04d601a3fc1469738a9a8d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3386 zcmai$_kP?&5XXNqkR!cl(tD$XSh5p`5LzG*lK_Dv2ZRo?w09?;P7;#t&Zfom-h1!$ z5%_}#;3;?#K8)s?qLUqeKK|;oGdnvwGdrt){`>210Eh5r2@h&mQVyDtttMShX;{?= zoTjHnUB40-(^kvUu;`Qw>3B%T!x~ECoBnH9oCeOAvSJSC_KboZG#Y^)8+PD%%1&JVJ)vPkp@ySu4QmTTZlGa# z&r-umY6mqeD~DDTt7C3bR>_4Hy`Wlk{i?ywiD}jp*SdqfS4YM5BnUOEoObF)(~p~B z7(|J3G^}6`%+CHy*<0#TX29%t(%I+mxY>+V!~s*DhP{O|2O4H2@RPU`(yS%NsdToK z9aJ+(WZ6j&Y0z_aYhlb2wib+|Tiz;4~uKCS55g(yS+&?q<)O4lkHiko*5prszS??*fp3XO?T;Gaj zBYQ%_LTa|e%nG?{?OwoIoLIhNrKOlZ0a>?Z(&LzqMn}O>t@#|0<5S@c#j|mu8pBo4 zv5?g$4r{}*qo5!ko%w#+IP)p*h{7n~OeV7$wiL!7=00OpxnkDk#Ia{Ok<}i~b5~$i zRlpm{yUWr{Ct5#j)NROe1@rplr(tz|9&deUMx0$KpPD%4o*VHUq9NZwx}v7X9{~BF z4P>U3@U4;Wc^Nq$+O%|dfqdO$lvK+qxE^u}si*byMp|ICO4FBHb-0!@#(GKxT`i*( zCe;Nu-b^p0f@o**lRr;vy)PX!kD-!cEomL;heNijq|;eo+I&Z~Ew4U&MHRQ4b~sp8 z!@iu=ejS>}d)LY7C}_Ek;-kDjr+mQ<&T&4bf}lQ7AI+>}2sTX;(1D8)(uHSciQa%Ux43FpB=(OYBcZhkST%PRt-k*~XOV1VlqH0*- z1rE&t8h<@^{zfpuKSpo~F6H5WahVJ+!J;{!gv;e^ad#|zES2BOgv*&Lu##EAD&cD3 zQLN!7pbJU3R=7^MUbsQHQMgICS-3^GRk%&KUARNIQ@BgGTewHKS9pc+O5s()tA+c7 z*9i9uM}>ya6pjhUg$INOg%iR2(K63AiPm{lkjHYQQ;4I3xk8^s4Gkrh5X?TF&HJtk&k*L@L diff --git a/poi/src/test/java9/module-info.class b/poi/src/test/java9/module-info.class deleted file mode 100644 index 7e8007f7772cacd8fd3672535163fc4f9f0586a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4199 zcmai1`J3Ft5q&b)!(oH*6t^+P#v}ne@`BAx0w&(rge8O_oC%7CK;j3gw@u9t+w z31=<{Xv|#O*jGnb$6_5zb@b@nnBjOGeGeNCG|V9q#DYZdh#(bYf?O~VEDKfyM+K{b zM+M&%d{6M0;QN9f2#yJUDEN`!alsRUCk0Olo)$bK__5$8f}aY0CiuDFS;2FHUkIKT zyde0c;8%iQ3w|SbQSe*A?*zXWyd-#8@QUD7!E1s)2woSwA^4-l#TM^4G)3%x_~p$TaU4793h}zaK|gqZRjhu9b)S_kIuORC=_XO0s1qAe&*pco#GEu;aeKGMq$7oZf2O0 z>2ZIMxm0uOw7B+E&YXDo3vra|E1CV`O6~T-FvQ}ZJDR6KE00qT^^$)#$#lX66{CJ( zR;7K#^?FNDyb@KcnsL>$%d6_B-*(F$c2rs1vWxQ3_IG`zLm@|v&v)|MgMNQCb*(s6 ziKn)~fC}3@w`##rMCVo6#tWC#>T=0TA4WmCnzr_PSkJ9xIkWz- zd!5y?Jc!x>OR;&bzBuZWW_g?rO7hw#;IOV9?BhLWE%AJW22n3iOmmky^_j3 zuVB|h%hJ&olnNWB4UPuCrMK5g&|8|mysBHyN;0{8r*-Bv>g(rDsGlrs zN23piq!;8Y4gKD+@1E&)G}Tl+l&>`{mg188>Rm5G13H;qs55gx@mU8DgsWYFh4G-chW#DYX za}3WlJkRia!|jF_8168<&~T^WMTWZ!cN<=8xX17k!!HhF>*2WH@X1 zHN(S(M+|Q@{JP<7hI59u8-By^4#RI6-f7r0yvy)ghIcD^xCi%+c&G?Rs0o>>kf{rq z%8;oInd*?oD^VvtQz