Skip to content

Commit 51626cf

Browse files
committed
Prevent multiple SLF4J bindings warning. (#649)
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:.../metafacture-runner/lib/slf4j-simple-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:.../metafacture-runner/lib/slf4j-reload4j-1.7.36.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.slf4j.impl.SimpleLoggerFactory]
1 parent 84c958a commit 51626cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

metafacture-runner/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ dependencies {
7373
// class loader which was used to load the classes of the slf4j-api. Until
7474
// a solution is found for this problem, the binding need to be placed on the
7575
// class path:
76-
runtimeOnly "org.slf4j:slf4j-log4j12:${versions.slf4j}"
76+
runtimeOnly("org.slf4j:slf4j-log4j12:${versions.slf4j}") {
77+
// Prevent multiple SLF4J bindings warning:
78+
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
79+
}
7780

7881
// The following dependencies are placed in the "provided" scope to prevent
7982
// them from being included in the class path but still have them available

0 commit comments

Comments
 (0)