From b61a4095904f3d1b148a3546c573f04c53c1019e Mon Sep 17 00:00:00 2001 From: Mirko Friedenhagen Date: Tue, 1 Sep 2015 22:47:13 +0200 Subject: [PATCH] Use slf4j adapters for logging. - By introducing adapters for log4j and commons-logging and - including the original log4j and commons-logging dependencies as provided all logging should be redirected to slf4j and finally java.util.logging. --- core/pom.xml | 8 ++------ plugins/pom.xml | 28 ++++++++++++++++++++++++++++ pom.xml | 14 ++++++++++---- 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 064fc8038d..f349a9cb30 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -401,10 +401,6 @@ THE SOFTWARE. org.springframework spring-support - - log4j - log4j - @@ -473,8 +469,8 @@ THE SOFTWARE. 1.1.0 - commons-logging - commons-logging + org.slf4j + jcl-over-slf4j org.slf4j diff --git a/plugins/pom.xml b/plugins/pom.xml index dd9422fd11..10de0d719b 100644 --- a/plugins/pom.xml +++ b/plugins/pom.xml @@ -34,6 +34,8 @@ UTF-8 2 + + 1.7.7 @@ -80,6 +82,32 @@ provided true + + + org.slf4j + slf4j-api + ${slf4jVersion} + provided + + + org.slf4j + log4j-over-slf4j + ${slf4jVersion} + provided + + + org.slf4j + jcl-over-slf4j + ${slf4jVersion} + provided + + + + org.slf4j + slf4j-jdk14 + ${slf4jVersion} + test + diff --git a/pom.xml b/pom.xml index 3963bf7fd1..b527872f5c 100644 --- a/pom.xml +++ b/pom.xml @@ -214,15 +214,22 @@ THE SOFTWARE. jcl-over-slf4j ${slf4jVersion} + + commons-logging + commons-logging + 1.1.3 + provided + org.slf4j log4j-over-slf4j ${slf4jVersion} - commons-logging - commons-logging - 1.1.3 + log4j + log4j + 1.2.17 + provided org.samba.jcifs @@ -664,7 +671,6 @@ THE SOFTWARE. org.sonatype.sisu:sisu-guice - log4j:log4j -- GitLab