Skip to content

Commit 8acb8ae

Browse files
committed
Exclude commons-logging from spring-test dependencies
Prior to this commit, various dependencies in the spring-test module pulled in commons-logging as a transitive dependency. Consequently, the presence of commons-logging in the generated Eclipse classpath overrode the intended use of the spring-jcl module causing JUL to be used instead of log4j for tests executed within Eclipse, thereby ignoring the configuration in src/test/resources/log4j2-test.xml. This commit addresses this issue by excluding commons-logging in spring-test.gradle for all Selenium dependencies. Issue: SPR-15930
1 parent dff0e79 commit 8acb8ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-test/spring-test.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ dependencies {
4545
optional("net.sourceforge.htmlunit:htmlunit:2.27") {
4646
exclude group: "commons-logging", module: "commons-logging"
4747
}
48-
optional("org.seleniumhq.selenium:htmlunit-driver:2.27")
48+
optional("org.seleniumhq.selenium:htmlunit-driver:2.27") {
49+
exclude group: "commons-logging", module: "commons-logging"
50+
}
4951
optional("org.seleniumhq.selenium:selenium-java:3.4.0") {
52+
exclude group: "commons-logging", module: "commons-logging"
5053
exclude group: "io.netty", module: "netty"
5154
}
5255
optional("org.xmlunit:xmlunit-matchers:2.3.0")

0 commit comments

Comments
 (0)