From 68ae2395529ffb1efd3d873637fbafc5bc425a32 Mon Sep 17 00:00:00 2001 From: Thomas Vitale Date: Sat, 4 Jan 2025 16:42:58 +0100 Subject: [PATCH] Remove Logback from production JAR Move Logback dependency to test scope to make it possible for applications using this library to choose their implementation of the SLF4J API. For example, Spring Boot provides one out of the box already. Fixes gh-49 Signed-off-by: Thomas Vitale --- mcp/pom.xml | 13 +++++++------ mcp/src/{main => test}/resources/logback.xml | 0 pom.xml | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) rename mcp/src/{main => test}/resources/logback.xml (100%) diff --git a/mcp/pom.xml b/mcp/pom.xml index d70fb95..30bb8ce 100644 --- a/mcp/pom.xml +++ b/mcp/pom.xml @@ -27,12 +27,6 @@ ${slf4j-api.version} - - ch.qos.logback - logback-classic - ${logback.version} - - com.fasterxml.jackson.core jackson-databind @@ -112,6 +106,13 @@ test + + ch.qos.logback + logback-classic + ${logback.version} + test + + diff --git a/mcp/src/main/resources/logback.xml b/mcp/src/test/resources/logback.xml similarity index 100% rename from mcp/src/main/resources/logback.xml rename to mcp/src/test/resources/logback.xml diff --git a/pom.xml b/pom.xml index c5b4c5b..6384d2b 100644 --- a/pom.xml +++ b/pom.xml @@ -73,7 +73,7 @@ 1.20.4 2.0.16 - 1.5.12 + 1.5.15 2.17.0 6.2.1