Saxon-HE is included in more place, combine these into the main gradle build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-01-06 19:58:45 +00:00
parent 4c1f59d85c
commit c8c06d1ec0
7 changed files with 6 additions and 26 deletions

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

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

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

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

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

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

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