Skip to content

Commit 1b355dd

Browse files
committed
Exclude slf4j->log4j bridge
- Projects which use scalatest-embedded-kafka may have their own slf4j bindings which can conflict with these
1 parent 3630e0c commit 1b355dd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.sbt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import sbtrelease.Version
22

3+
val slf4jLog4jOrg = "org.slf4j"
4+
val slf4jLog4jArtifact = "slf4j-log4j12"
5+
36
lazy val commonSettings = Seq(
47
name := "scalatest-embedded-kafka",
58
organization := "net.manub",
@@ -8,10 +11,9 @@ lazy val commonSettings = Seq(
811
parallelExecution in Test := false,
912
libraryDependencies ++= Seq(
1013
"org.scalatest" %% "scalatest" % "2.2.5",
11-
"org.apache.kafka" %% "kafka" % "0.9.0.1",
12-
"org.apache.zookeeper" % "zookeeper" % "3.4.7",
13-
"org.apache.avro" % "avro" % "1.7.7",
14-
"org.slf4j" % "log4j-over-slf4j" % "1.7.12",
14+
"org.apache.kafka" %% "kafka" % "0.9.0.1" exclude(slf4jLog4jOrg, slf4jLog4jArtifact),
15+
"org.apache.zookeeper" % "zookeeper" % "3.4.7" exclude(slf4jLog4jOrg, slf4jLog4jArtifact),
16+
"org.apache.avro" % "avro" % "1.7.7" exclude(slf4jLog4jOrg, slf4jLog4jArtifact),
1517
"com.typesafe.akka" %% "akka-actor" % "2.3.14" % Test,
1618
"com.typesafe.akka" %% "akka-testkit" % "2.3.14" % Test
1719
)

0 commit comments

Comments
 (0)