aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2022-11-13 19:22:22 +0000
committerDominik Stadler <centic@apache.org>2022-11-13 19:22:22 +0000
commit5fb3315ff32b42e373f4fe32ec2f558f53ee2ea7 (patch)
treeb98433ea00c6a2a9a2a838e078ad8c08a3eaddd3 /poi-ooxml
parent818c91dd40d31e672805f98b06f7546db9559a04 (diff)
downloadpoi-5fb3315ff32b42e373f4fe32ec2f558f53ee2ea7.tar.gz
poi-5fb3315ff32b42e373f4fe32ec2f558f53ee2ea7.zip
Avoid build failing locally when older batik-files are still lingering on under "build"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905276 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r--poi-ooxml/build.gradle10
1 files changed, 9 insertions, 1 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index ed9c007d23..44ebc0d164 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -173,7 +173,7 @@ final String OOXML_LITE_REPORT = '../src/resources/ooxml-lite-report'
final String OOXML_LITE_INCLUDES = "^(com/microsoft/schemas|org/(etsi|openxmlformats|w3/)|org/apache/poi/schemas)"
compileJava {
- dependsOn 'fixBatik'
+ dependsOn 'fixBatik', 'cleanupBatik'
}
task compileJava9(type: JavaCompile) {
@@ -278,6 +278,14 @@ task fixBatik(type: Zip) {
}
}
+task cleanupBatik(type: Delete) {
+ // remove older files to avoid build failures because of duplicate modules
+ delete fileTree("${buildDir}/brokenJars/").matching {
+ include "*.jar"
+ exclude "batik*-${batikVersion}.jar"
+ }
+}
+
javadoc {
failOnError = true
doFirst {