From 297a7e62086909aa1ff9482d783b997b26894cb7 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Sat, 4 Feb 2017 22:36:42 +0000 Subject: [PATCH] Add SLF4J binding for Log4J 2.x --- tools/demobench/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/demobench/build.gradle b/tools/demobench/build.gradle index 434c609253..fd610400a3 100644 --- a/tools/demobench/build.gradle +++ b/tools/demobench/build.gradle @@ -54,6 +54,7 @@ dependencies { compile "net.java.dev.jna:jna-platform:$jna_version" compile "com.google.guava:guava:$guava_version" compile "com.sparetimelabs:purejavacomm:$purejavacomm_version" + compile "org.apache.logging.log4j:log4j-to-slf4j:$log4j_version" compile "org.slf4j:log4j-over-slf4j:$slf4j_version" compile "org.slf4j:jcl-over-slf4j:$slf4j_version" compile "org.slf4j:jul-to-slf4j:$slf4j_version" @@ -66,9 +67,11 @@ dependencies { } // We don't want the Node to drag these transitive dependencies in either! -configurations.compile.exclude module: 'commons-logging' -configurations.compile.exclude module: 'log4j-slf4j-impl' -configurations.compile.exclude module: 'log4j-core' +configurations.all { + exclude module: 'commons-logging' + exclude module: 'log4j-slf4j-impl' + exclude module: 'log4j-core' +} jar { manifest {