diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-09-03 21:13:36 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-09-03 21:13:36 +0000 |
commit | f63f3ff09d8bfc5afbbc60dde5053c14f407120b (patch) | |
tree | 1627d4c0cb01da9d033f7166aa2241755aadcd49 /poi-ooxml-lite | |
parent | 1eace7a0c4f5cb4d6116a4f416f71fed1f69b6d0 (diff) | |
download | poi-f63f3ff09d8bfc5afbbc60dde5053c14f407120b.tar.gz poi-f63f3ff09d8bfc5afbbc60dde5053c14f407120b.zip |
update to release 5.1.0
fix ooxml-lite build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892887 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml-lite')
-rw-r--r-- | poi-ooxml-lite/build.gradle | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle index 9c037d54ad..ff5fca3a66 100644 --- a/poi-ooxml-lite/build.gradle +++ b/poi-ooxml-lite/build.gradle @@ -115,17 +115,21 @@ task cacheJava9(type: Copy, dependsOn: 'compileJava9') { } jar { - File clazzFile = file("${OOXML_LITE_REPORT}.clazz") - File xsbsFile = file("${OOXML_LITE_REPORT}.xsb") - if (clazzFile.exists() && xsbsFile.exists()) { - List clazz = clazzFile.collect { "${it}.class" } - List clazzInner = clazzFile.collect { "${it}\$*.class" } - List xsbs = xsbsFile.collect { "org/apache/poi/schemas/ooxml/system/ooxml/${it}.xsb" } - includes = clazz + clazzInner + xsbs + ['META-INF/versions/**', 'org/apache/poi/schemas/ooxml/element/**'] - } + dependsOn ':poi-ooxml:test', ':poi-integration:test' destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}") + doFirst { + File clazzFile = file("${OOXML_LITE_REPORT}.clazz") + File xsbsFile = file("${OOXML_LITE_REPORT}.xsb") + if (clazzFile.exists() && xsbsFile.exists()) { + List clazz = clazzFile.collect { "${it}.class" } + List clazzInner = clazzFile.collect { "${it}\$*.class" } + List xsbs = xsbsFile.collect { "org/apache/poi/schemas/ooxml/system/ooxml/${it}.xsb" } + includes = clazz + clazzInner + xsbs + ['META-INF/versions/**', 'org/apache/poi/schemas/ooxml/element/**'] + } + } + if (JavaVersion.current() == JavaVersion.VERSION_1_8) { into('META-INF/versions/9') { from JAVA9_SRC include '*.class' @@ -143,4 +147,5 @@ jar { spotbugsTest.enabled = false spotbugsMain.enabled = false -javadoc.enabled = false
\ No newline at end of file +javadoc.enabled = false +javadocJar.enabled = false
\ No newline at end of file |