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
This commit is contained in:
Dominik Stadler 2022-11-13 19:22:22 +00:00
parent 818c91dd40
commit 5fb3315ff3
1 changed files with 9 additions and 1 deletions

View File

@ -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 {