Skip to content

Commit a3aad9e

Browse files
committed
Updated README.md to new dependencies.
1 parent 2837ec7 commit a3aad9e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# scalatest-embedded-kafka
2-
A library that provides an in-memory Kafka broker to run your ScalaTest specs against. It uses Kafka 0.10.0.1 and ZooKeeper 3.4.9.
2+
A library that provides an in-memory Kafka broker to run your ScalaTest specs against. It uses Kafka 0.10.1.0 and ZooKeeper 3.4.9.
3+
4+
For Kafka 0.10.0.x support, override `org.apache.kafka % kafka` dependency with older version:
5+
6+
libraryDependencies += "org.apache.kafka" % "kafka" % "0.10.0.1" % test
7+
dependencyOverrides += "org.apache.kafka" % "kafka" % "0.10.0.1"
8+
9+
This override is required because Kafka Broker 0.10.1.0 doesn't support older clients.
310

411
The version supporting Kafka 0.8.x can be found [here](https://github.com/manub/scalatest-embedded-kafka/tree/kafka-0.8) - *this is no longer actively supported, although I'll be happy to accept PRs and produce releases.*
512

@@ -17,7 +24,7 @@ Inspired by https://github.com/chbatey/kafka-unit
1724

1825
scalatest-embedded-kafka is available on Bintray and Maven Central, compiled for both Scala 2.10 and 2.11
1926

20-
* In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka" % "0.9.0" % "test"`
27+
* In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka" % "0.10.0" % "test"`
2128
* Have your `Spec` extend the `EmbeddedKafka` trait.
2229
* Enclose the code that needs a running instance of Kafka within the `withRunningKafka` closure.
2330
```scala

0 commit comments

Comments
 (0)