Thanks Joe, that does the trick with sbt and the 0.8.2.-beta-test jar.
Regards, Markus Joe Crobak <joec...@gmail.com> schrieb am 23:28 Sonntag, 9.November 2014: > > >For sbt, you need to use something like: > >"org.apache.kafka" %% "kafka" %"0.8.2-beta" % "test" classifier "test" > >That tells sbt to pull in the kafka artifact with the "test" classifier >only when running tests. The %% tells sbt to fill in the scala version (so >it'll map to "kafka_2.10" like in your example). > > >On Thu, Nov 6, 2014 at 6:56 PM, Jun Rao <jun...@gmail.com> wrote: > >> The following is how samza references the kafka test jar in gradle. >> >> testCompile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion:test" >> >> Thanks, >> >> Jun >> >> >> On Thu, Nov 6, 2014 at 6:38 AM, Markus Jais <markus.j...@yahoo.de> wrote: >> >> > Hello, >> > >> > I want to use the kafka_2.10-0.8.2-beta-test.jar in my Scala project. >> > >> > It can be found here: >> > http://repo.maven.apache.org/maven2/org/apache/kafka/kafka_2.10/0.8.1.1/ >> > >> > >> > In my build.sbt I write the following definition: >> > "org.apache.kafka" % "kafka_2.10" % "0.8.2-beta-test" >> > >> > >> > But sbt cannot find it. Has anybody has any success with this? >> > >> > I already used "gradle testJar" and it test jar gets published to : >> > >> > .m2/repository/org/apache/kafka/kafka_2.10/0.8.2-beta >> > >> > >> > but sbt is looking for a: >> > >> > >> .m2/repository/org/apache/kafka/kafka_2.10/0.8.2-beta-test/kafka_2.10-0.8.2-beta-test.pom >> > >> > any tips on how to use the kafka test jar (together with the regular >> kafka >> > jar) in an build.sbt file? >> > >> > I want to start a kafka cluster for a unit test. >> > >> > Cheers, >> > >> > Marus >> > > >