From 51626cf48d6ba23e879706a8bbe13b5bccd88716 Mon Sep 17 00:00:00 2001 From: Jens Wille Date: Thu, 6 Feb 2025 13:53:12 +0100 Subject: [PATCH] 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] --- metafacture-runner/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metafacture-runner/build.gradle b/metafacture-runner/build.gradle index f40402c5d..2476fdbf3 100644 --- a/metafacture-runner/build.gradle +++ b/metafacture-runner/build.gradle @@ -73,7 +73,10 @@ dependencies { // class loader which was used to load the classes of the slf4j-api. Until // a solution is found for this problem, the binding need to be placed on the // class path: - runtimeOnly "org.slf4j:slf4j-log4j12:${versions.slf4j}" + runtimeOnly("org.slf4j:slf4j-log4j12:${versions.slf4j}") { + // Prevent multiple SLF4J bindings warning: + exclude group: 'org.slf4j', module: 'slf4j-reload4j' + } // The following dependencies are placed in the "provided" scope to prevent // them from being included in the class path but still have them available