From a466eb14744fbaae9e0ce2188cf30c17e0a6d517 Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Tue, 19 Jul 2016 16:02:15 -0600 Subject: [PATCH] Remove slf4j-log4j from kafka-streams dependencies As kafka-streams is intended to be used by client applications that may or may not wish to use log4j, kafka-streams itself should not have a dependency on a concrete log framework. This change adapts the dependencies to be API-only for compile, and framework-specific for the test runtime. --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index b3be020cbd711..c76ff2a53223a 100644 --- a/build.gradle +++ b/build.gradle @@ -677,7 +677,7 @@ project(':streams') { dependencies { compile project(':clients') compile project(':connect:json') // this dependency should be removed after we unify data API - compile libs.slf4jlog4j + compile libs.slf4jApi compile libs.rocksDBJni // this dependency should be removed after KIP-4 compile (libs.zkclient) { @@ -690,6 +690,8 @@ project(':streams') { testCompile project(':core') testCompile project(':core').sourceSets.test.output testCompile libs.junit + + testRuntime libs.slf4jlog4j } javadoc {