Skip to content

Instantly share code, notes, and snippets.

@miguno
Created November 30, 2013 13:03
Show Gist options
  • Select an option

  • Save miguno/7718835 to your computer and use it in GitHub Desktop.

Select an option

Save miguno/7718835 to your computer and use it in GitHub Desktop.
build.sbt for Apache Kafka 0.8.0 for Scala 2.10 with sbt 0.13.0. Note: The code uses the Apache Staging repository because we use the latest release candidate (RC) of Kafka 0.8.0. For official Kafka releases you don't need that staging repository.
name := "kafka-0.8-with-scala-2.10-example"
version := "1.0"
scalaVersion := "2.10.3"
sbtVersion := "0.13.0"
// Required to retrieve Kafka 0.8.0-rc5 artifacts; once Kafka 0.8.0 is officially released
// you don't need to use the Apache Staging repo anymore.
resolvers += "Apache Staging" at "https://repository.apache.org/content/groups/staging/"
libraryDependencies ++= Seq(
// The excludes of jms, jmxtools and jmxri are required as per https://issues.apache.org/jira/browse/KAFKA-974.
// The exclude of slf4j-simple is because it overlaps with our use of logback with slf4j facade; without the exclude
// we get slf4j warnings and logback's configuration is not picked up.
"org.apache.kafka" % "kafka_2.10" % "0.8.0"
exclude("javax.jms", "jms")
exclude("com.sun.jdmk", "jmxtools")
exclude("com.sun.jmx", "jmxri")
exclude("org.slf4j", "slf4j-simple"),
// Logback with slf4j facade
"ch.qos.logback" % "logback-classic" % "1.0.13",
"ch.qos.logback" % "logback-core" % "1.0.13",
"org.slf4j" % "slf4j-api" % "1.7.5",
"org.scalatest" % "scalatest_2.10" % "2.0" % "test"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment