]> source.dussan.org Git - poi.git/commitdiff
Saxon-HE is included in more place, combine these into the main gradle build
authorDominik Stadler <centic@apache.org>
Fri, 6 Jan 2023 19:58:45 +0000 (19:58 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 6 Jan 2023 19:58:45 +0000 (19:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906427 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
poi-examples/build.gradle
poi-excelant/build.gradle
poi-integration/build.gradle
poi-ooxml/build.gradle
poi-scratchpad/build.gradle
poi/build.gradle

index f681fc9417b30adf79ac9b4a27f61cbc667bce0b..4fd45217f8c5e2b2966d5787067d96d468da15c4 100644 (file)
@@ -172,6 +172,12 @@ subprojects {
         testImplementation "org.mockito:mockito-core:${mockitoVersion}"
         testImplementation "org.hamcrest:hamcrest:${hamcrestVersion}"
         testImplementation "org.apache.logging.log4j:log4j-core:${log4jVersion}"
+
+        if (SAXON_TEST) {
+            testRuntimeOnly("net.sf.saxon:Saxon-HE:${saxonVersion}") {
+                exclude group: 'xml-apis', module: 'xml-apis'
+            }
+        }
     }
 
     java {
index 8ce4abd87edfcd79286892b97ec647ffc652f980..ed6ae97c92c63734794495fdd06d456bc3ca2258 100644 (file)
@@ -43,10 +43,6 @@ dependencies {
         }
     }
     testImplementation project(path: ':poi', configuration: 'tests')
-
-    if (SAXON_TEST) {
-         testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
-    }
 }
 
 final String MODULE_NAME = 'org.apache.poi.examples'
index 1b394fe99433e2d9d9f5246d78fafd4e4e475e77..0c0bb935d4a04b5763029549e96b8cf85b193ff9 100644 (file)
@@ -45,10 +45,6 @@ dependencies {
     testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
     testImplementation 'org.slf4j:slf4j-simple:2.0.6'
     testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
-
-    if (SAXON_TEST) {
-        testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
-    }
 }
 
 final String MODULE_NAME = 'org.apache.poi.excelant'
index 9b46ca3940c0a2d98bae6bd98d444c9f03eced66..f9967fc2ddf0c0ef4b411d8977da6f2ddc4d672f 100644 (file)
@@ -78,10 +78,6 @@ dependencies {
     testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
     testImplementation 'org.slf4j:slf4j-simple:2.0.6'
     testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
-
-    if (SAXON_TEST) {
-        testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
-    }
 }
 
 final String MODULE_NAME = 'org.apache.poi.stress'
index 1c2ffca5c9d1a3d69470ff49ff062b7766c8094a..2c3cb9199ceec4bc31ce604ec60d3d79b31af6b1 100644 (file)
@@ -127,10 +127,6 @@ dependencies {
     testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
     testImplementation 'org.slf4j:slf4j-simple:2.0.6'
 
-    if (SAXON_TEST) {
-        testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
-    }
-
     broken("org.apache.xmlgraphics:batik-script:${batikVersion}"){
         exclude group: 'xalan', module: 'xalan'
         exclude group: 'xml-apis', module: 'xml-apis'
index 9caafbd3f4b8803a9c05bf1e7fa145887c21a707..60efe68b222379f5f5fb191493eca20b1e715fdc 100644 (file)
@@ -43,10 +43,6 @@ dependencies {
     testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
     testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
 
-    if (SAXON_TEST) {
-        testRuntimeOnly "net.sf.saxon:Saxon-HE:${saxonVersion}"
-    }
-
     javadocs project(':poi')
     javadocs project(':poi-ooxml')
 }
index 57493d7c384afd308d53dd818016f3a6d5846f36..c2f60e24a0210c451ff9ac17be4b9acbe7fb8c9e 100644 (file)
@@ -50,12 +50,6 @@ dependencies {
     testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
     testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"
 
-    if (SAXON_TEST) {
-        testRuntimeOnly("net.sf.saxon:Saxon-HE:${saxonVersion}") {
-            exclude group: 'xml-apis', module: 'xml-apis'
-        }
-    }
-
     // needed for locating the external references
     javadocs project(':poi-ooxml')
     javadocs project(':poi-scratchpad')