Skip to content

Commit fdded07

Browse files
committed
Upgrade slf4j-api and -log4j12 dependencies to 1.6.1
Previously depending on 1.5.10 in certain locations, which caused NoClassDefFoundErrors in EhCacheCacheTests and other tests due to mismatches between slf4j -api and -log4j12 versions. With the exception of one transitive dependency via Hibernate 3.3.1.GA, all slf4j dependencies are now pegged at 1.6.1 (and all tests pass).
1 parent b09be84 commit fdded07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ configure(allprojects) {
1717
sourceCompatibility=1.5
1818
targetCompatibility=1.5
1919

20-
ext.slf4jLog4jVersion = '1.5.10'
2120
ext.aspectjVersion = '1.6.12'
2221

2322
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:none']
@@ -219,7 +218,7 @@ project('spring-context') {
219218
}
220219
compile("joda-time:joda-time:1.6", optional)
221220
compile("net.sf.ehcache:ehcache-core:2.0.0", optional)
222-
compile("org.slf4j:slf4j-api:${slf4jLog4jVersion}", optional)
221+
compile("org.slf4j:slf4j-api:1.6.1", optional)
223222
compile("org.codehaus.jsr166-mirror:jsr166:1.7.0", provided)
224223
testCompile "commons-dbcp:commons-dbcp:1.2.2"
225224
testCompile("javax.xml:jaxrpc-api:1.1")
@@ -389,7 +388,7 @@ project('spring-webmvc') {
389388
}
390389
compile("javax.servlet:jstl:1.1.2", provided)
391390
compile("org.apache.tomcat:tomcat-servlet-api:7.0.8", provided) // servlet-api 3.0
392-
testCompile("org.slf4j:slf4j-log4j12:${slf4jLog4jVersion}") {
391+
testCompile("org.slf4j:slf4j-log4j12:1.6.1") {
393392
exclude group: 'log4j', module: 'log4j'
394393
}
395394
testCompile "rhino:js:1.7R1"

0 commit comments

Comments
 (0)