]> source.dussan.org Git - poi.git/commitdiff
saxon test
authorPJ Fanning <fanningpj@apache.org>
Thu, 25 Nov 2021 10:05:00 +0000 (10:05 +0000)
committerPJ Fanning <fanningpj@apache.org>
Thu, 25 Nov 2021 10:05:00 +0000 (10:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895319 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
jenkins/create_jobs.groovy
poi-examples/build.gradle
poi-excelant/build.gradle
poi-integration/build.gradle
poi-ooxml/build.gradle
poi-scratchpad/build.gradle
poi/build.gradle

index d8d4d8e56665da2603a10c941d606ba26eede1da..da789acb7af5ecd9841ba4d52cf8f11f1687cd3a 100644 (file)
@@ -132,6 +132,7 @@ subprojects {
         VERSIONS9 = 'META-INF/versions/9'
 
         NO_SCRATCHPAD = (findProperty("scratchpad.ignore") == "true")
+        SAXON_TEST = (findProperty("saxon.test") == "true")
     }
 
     configurations {
index a14b9bebb7a8938873349dc80ab1cbb43fbbcadb..8cddebe02c511acbcb3a69b1003511b634d6edc7 100644 (file)
@@ -67,6 +67,8 @@ def poijobs = [
 //        ],
         [ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true, gradle: true
         ],
+        [ name: 'POI-DSL-saxon-test', trigger: triggerSundays, saxonTest: true, gradle: true
+        ],
 //        [ name: 'POI-DSL-SonarQube', jdk: '1.11', trigger: 'H 7 * * *', maven: true, sonar: true, skipcigame: true,
 //          email: 'kiwiwings@apache.org',
 //               // replaced by Gradle-based build now
@@ -424,6 +426,9 @@ poijobs.each { poijob ->
                         if (poijob.noScratchpad) {
                             switches('-Pscratchpad.ignore=true')
                         }
+                        if (poijob.saxonTest) {
+                            switches('-Psaxon.test=true')
+                        }
                     }
                 } else {
                     ant {
index 5c1c7a54e5fc69dc2331ed63f4a4f456ff86f9b3..97567a4927eb698dafab1db9b07769d44baed605 100644 (file)
@@ -45,6 +45,10 @@ dependencies {
         }
     }
     testImplementation project(path: ':poi', configuration: 'tests')
+
+    if (SAXON_TEST) {
+         testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
+    }
 }
 
 final String MODULE_NAME = 'org.apache.poi.examples'
index 3838b58e8db38ab7bf284502fa666a5a4a524c91..b59f595f8dc9a148c99c690850296800a76facd7 100644 (file)
@@ -47,7 +47,11 @@ dependencies {
     }
     testImplementation 'com.google.guava:guava:31.0.1-jre'
     testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4jVersion}"
-    testImplementation 'org.apiguardian:apiguardian-api:1.1.2'
+    testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
+
+    if (SAXON_TEST) {
+         testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
+    }
 }
 
 final String MODULE_NAME = 'org.apache.poi.excelant'
index e6eafcbb8f7fc3d1fd63a416e6e6cffd76221967..7dc9f3ebe72d037ef66318909437a971e3c9a60b 100644 (file)
@@ -78,7 +78,11 @@ dependencies {
     }
     testImplementation project(path: ':poi-ooxml-lite-agent', configuration: 'archives')
     testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4jVersion}"
-    testImplementation 'org.apiguardian:apiguardian-api:1.1.2'
+    testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
+
+    if (SAXON_TEST) {
+         testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
+    }
 }
 
 final String MODULE_NAME = 'org.apache.poi.stress'
index 412880b6092202559380e7bdd3407c1d65d0a993..f8f2510a74f865da195b389d6d696512e46fbf51 100644 (file)
@@ -131,7 +131,7 @@ dependencies {
     }
     testImplementation project(path:':poi', configuration:'tests')
     testImplementation project(path:':poi-ooxml-lite-agent', configuration: 'archives')
-    testImplementation 'org.apiguardian:apiguardian-api:1.1.2'
+    testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
     testImplementation 'org.xmlunit:xmlunit-core:2.8.3'
     testImplementation 'org.reflections:reflections:0.10.2'
     testImplementation 'org.openjdk.jmh:jmh-core:1.33'
@@ -143,6 +143,9 @@ dependencies {
     // see https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/
     testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:${log4jVersion}"
 
+    if (SAXON_TEST) {
+         testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
+    }
 
     broken("org.apache.xmlgraphics:batik-script:${batikVersion}"){
         exclude group: 'xalan', module: 'xalan'
index 6b7781df5bf9c11159efa95fe59a84dc4648824c..d5276b8f22d1650f9366eb6357ff74d86b75797d 100644 (file)
@@ -45,7 +45,11 @@ dependencies {
     testImplementation project(path: ':poi', configuration: 'tests')
     testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
     testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
-    testImplementation 'org.apiguardian:apiguardian-api:1.1.2'
+    testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
+
+    if (SAXON_TEST) {
+         testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
+    }
 
     javadocs project(':poi')
     javadocs project(':poi-ooxml')
index fbf2ba4725cfcf3f829c02c3ba63a4d3069fbadd..c741223f8676f1c2939b3c8177d47bd70bc2f776 100644 (file)
@@ -53,7 +53,11 @@ dependencies {
 
     testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
     testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
-    testImplementation 'org.apiguardian:apiguardian-api:1.1.2'
+    testRuntimeOnly 'org.apiguardian:apiguardian-api:1.1.2'
+
+    if (SAXON_TEST) {
+         testRuntimeOnly 'net.sf.saxon:Saxon-HE:10.6'
+    }
 
     // needed for locating the external references
     javadocs project(':poi-ooxml')