diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle index ef96c88077..72bb1bf74d 100644 --- a/poi-excelant/build.gradle +++ b/poi-excelant/build.gradle @@ -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}" diff --git a/poi-integration/build.gradle b/poi-integration/build.gradle index 0318c2f7af..3dd62c2e44 100644 --- a/poi-integration/build.gradle +++ b/poi-integration/build.gradle @@ -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}" diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index f8dad94e98..8b0ca8515a 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -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) {