From deb410b568f56fd292f94b85b7ef28d54bae7f2d Mon Sep 17 00:00:00 2001 From: Marius Volkhart Date: Sun, 14 Mar 2021 18:56:30 +0000 Subject: Exclude batik-script dependency from OOXML artifact We do not make use of the batik-script dependency. While this is likely to be true of a variety of the Batik dependencies, batik-script causes problems for our users who are using JPMS. See [bug-65103]. Fixes #230 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887643 13f79535-47bb-0310-9956-ffa450edef68 --- build.gradle | 5 ++++- build.xml | 5 ----- maven/poi-ooxml.pom | 6 ++++++ sonar/ooxml/pom.xml | 6 ++++++ 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 6b7b5cb2e0..845d107044 100644 --- a/build.gradle +++ b/build.gradle @@ -311,7 +311,9 @@ project('ooxml') { // compile only, don't add it to our dist as it blows up the size compile "org.apache.xmlgraphics:batik-svggen:${batikVersion}" - compile "org.apache.xmlgraphics:batik-bridge:${batikVersion}" + compile("org.apache.xmlgraphics:batik-bridge:${batikVersion}") { + exclude group: 'org.apache.xmlgraphics', module: 'batik-script' + } compile "org.apache.xmlgraphics:batik-codec:${batikVersion}" compile 'xml-apis:xml-apis-ext:1.3.04' compile 'org.apache.xmlgraphics:xmlgraphics-commons:2.4' @@ -420,6 +422,7 @@ project('integrationtest') { test { // exclude these from the normal test-run + exclude '**/TestAllFiles.class' exclude '**/*FileHandler.class' } diff --git a/build.xml b/build.xml index d85f319a33..7e6ddf7af9 100644 --- a/build.xml +++ b/build.xml @@ -314,7 +314,6 @@ under the License. - @@ -491,7 +490,6 @@ under the License. - @@ -805,7 +803,6 @@ under the License. - @@ -843,7 +840,6 @@ under the License. - @@ -2679,7 +2675,6 @@ under the License. - diff --git a/maven/poi-ooxml.pom b/maven/poi-ooxml.pom index c445b1e373..d43f72a6e8 100644 --- a/maven/poi-ooxml.pom +++ b/maven/poi-ooxml.pom @@ -100,6 +100,12 @@ org.apache.xmlgraphics batik-bridge 1.14 + + + org.apache.xmlgraphics + batik-script + + org.apache.xmlgraphics diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml index 6248a47d7a..90df1cbb9e 100644 --- a/sonar/ooxml/pom.xml +++ b/sonar/ooxml/pom.xml @@ -160,6 +160,12 @@ org.apache.xmlgraphics batik-bridge 1.14 + + + org.apache.xmlgraphics + batik-script + + org.apache.xmlgraphics -- cgit v1.2.3