Skip to content

Commit 2bf1117

Browse files
garyrussellartembilan
authored andcommitted
Remove log4j-slf4j-impl test dependency
``` SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/grussell/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-slf4j-impl/2.12.0/7f44f5201f79d6f7010a1515699a5f6c40e49cb/log4j-slf4j-impl-2.12.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/grussell/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.3/7c4f3c474fb2c041d8028740440937705ebb473a/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] ``` Use the logback binding for the amqp client.
1 parent 44de1a5 commit 2bf1117

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ project('spring-amqp') {
300300
compile ("com.jayway.jsonpath:json-path:$jaywayJsonPathVersion", optional)
301301

302302
testCompile "org.assertj:assertj-core:$assertjVersion"
303-
testRuntime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
304303
}
305304

306305
}
@@ -356,7 +355,8 @@ project('spring-rabbit-junit') {
356355
compile "org.assertj:assertj-core:$assertjVersion"
357356
compileOnly 'org.apiguardian:apiguardian-api:1.0.0'
358357

359-
testRuntime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
358+
testRuntime "ch.qos.logback:logback-classic:$logbackVersion"
359+
360360
}
361361

362362
}

spring-rabbit/src/test/resources/logback-test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<configuration debug="true">
2+
<configuration debug="false">
33

44
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
55
<encoder>

0 commit comments

Comments
 (0)