diff options
author | PJ Fanning <fanningpj@apache.org> | 2024-10-09 17:48:02 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2024-10-09 17:48:02 +0000 |
commit | c33f34b27cdfc46640d1c40af145b00b84440978 (patch) | |
tree | 30d3678983c555b8aac10aa6705c3b7a7ec9b69c /poi-ooxml/build.gradle | |
parent | d034f954bd772b5ff28cd2461529434260544d16 (diff) | |
download | poi-c33f34b27cdfc46640d1c40af145b00b84440978.tar.gz poi-c33f34b27cdfc46640d1c40af145b00b84440978.zip |
try batik 1.18
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1921214 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/build.gradle')
-rw-r--r-- | poi-ooxml/build.gradle | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index 843c21ead5..84c1fa157f 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -28,7 +28,6 @@ configurations { exclude group: 'xml-apis', module: 'xml-apis' } - broken tests javadocs } @@ -126,29 +125,19 @@ dependencies { testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}" testImplementation 'org.slf4j:slf4j-simple:2.0.16' - broken("org.apache.xmlgraphics:batik-script:${batikVersion}"){ - exclude group: 'xalan', module: 'xalan' - exclude group: 'xml-apis', module: 'xml-apis' - } - javadocs project(':poi') javadocs project(':poi-scratchpad') } final String MODULE_NAME = 'org.apache.poi.ooxml' -final Pattern MODULE_NOT_REGEX = ~'(poi[/\\\\][^/\\\\]+$|batik-script)' final Pattern MODULE_REGEX = ~'\\.jar$' final List MAIN_MODULE_PATH = sourceSets.main.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX }.collect{ it.parent }.unique() -final List TEST_MODULE_PATH = sourceSets.test.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX && !(it.path =~ MODULE_NOT_REGEX) }.collect{ it.parent }.unique() + files("build/brokenJars") +final List TEST_MODULE_PATH = sourceSets.test.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX }.collect{ it.parent }.unique() final String OOXML_LITE_AGENT = "../build/dist/maven/poi-ooxml-lite-agent/poi-ooxml-lite-agent-${project.version}.jar" 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', 'cleanupBatik' -} - task compileJava9(type: JavaCompile) { dependsOn 'compileJava', ':poi:jar' @@ -208,25 +197,6 @@ task testJar(type: Jar, dependsOn: testClasses) { } } -// based on https://github.com/moditect/moditect-gradle-plugin/issues/12 -task fixBatik(type: Zip) { - ant.mkdir(dir: "${buildDir}/brokenJars") - archiveFileName = "batik-script-${batikVersion}.jar" - destinationDirectory = file("${buildDir}/brokenJars") - from zipTree(configurations.broken.files.find{ f -> f.name.startsWith("batik-script") }) - filesMatching("**/org.apache.batik.script.InterpreterFactory") { - it.filter{ it2 -> it2.contains("Rhino") ? "#" + it2 : it2 } - } -} - -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 { |