mirror of https://github.com/apache/poi.git
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:
parent
818c91dd40
commit
5fb3315ff3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue