log4j 2.19.0 rc2 may not need hamcrest build hack

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904064 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-09-14 09:31:40 +00:00
parent be9d333493
commit 1e50886b54
3 changed files with 3 additions and 9 deletions

View File

@ -46,9 +46,7 @@ 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}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
testImplementation 'org.slf4j:slf4j-simple:2.0.0'
testRuntimeOnly "org.apiguardian:apiguardian-api:${apiGuardianVersion}"

View File

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

View File

@ -144,9 +144,7 @@ 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}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:${log4jVersion}"
testImplementation 'org.slf4j:slf4j-simple:2.0.0'
if (SAXON_TEST) {