saxon test

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-11-25 10:05:00 +00:00
parent 12e3d2a9ed
commit a3f0121147
8 changed files with 34 additions and 5 deletions

View File

@ -132,6 +132,7 @@ subprojects {
VERSIONS9 = 'META-INF/versions/9'
NO_SCRATCHPAD = (findProperty("scratchpad.ignore") == "true")
SAXON_TEST = (findProperty("saxon.test") == "true")
}
configurations {

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

View 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'

View 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'

View 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'

View 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'

View 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')

View 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')