try to fix hamcrest module issue affecting poi-ooxml test compile

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-09-13 11:26:51 +00:00
parent fee2c2a11e
commit e694cf4d53
3 changed files with 9 additions and 3 deletions

View File

@ -46,7 +46,9 @@ dependencies {
exclude group: 'org.apache.poi', module: 'poi-scratchpad'
}
testImplementation 'com.google.guava:guava:31.1-jre'
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
testImplementation ("org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testImplementation 'org.slf4j:slf4j-simple:2.0.0'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"

View File

@ -77,7 +77,9 @@ dependencies {
}
}
testImplementation project(path: ':poi-ooxml-lite-agent', configuration: 'archives')
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
testImplementation ("org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testImplementation 'org.slf4j:slf4j-simple:2.0.0'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"

View File

@ -144,7 +144,9 @@ dependencies {
// prevent slf4j warnings coming from xmlsec -> slf4j-api 1.7.x dependency
// see https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
testImplementation ("org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testImplementation 'org.slf4j:slf4j-simple:2.0.0'
if (SAXON_TEST) {