Parcourir la source

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
tags/REL_5_2_4
Dominik Stadler il y a 1 an
Parent
révision
5fb3315ff3
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9
    1
      poi-ooxml/build.gradle

+ 9
- 1
poi-ooxml/build.gradle Voir le fichier

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

Chargement…
Annuler
Enregistrer