Skip to content

Commit 02bf0ca

Browse files
committed
preliminary migration stage - update deps
1 parent aa5aa05 commit 02bf0ca

File tree

2 files changed

+36
-17
lines changed

2 files changed

+36
-17
lines changed

README.adoc

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
= clj-kafka-x
22

3-
A Clojure library for the Kafka 0.10.X.X releases.
4-
5-
This library takes it's inspiration and some code from the https://github.com/pingles/clj-kafka/[clj-kafka] and from the https://github.com/DayoOliyide/kafkian[kafkian] libraries.
6-
7-
Current code was initially taken from https://github.com/DayoOliyide/kafkian[kafkian], but since Apache Kafka has very ugly backward compatibilities and developing this code goes break the chain -- it was not forked normally, but splitted and refactored to dedicated library with many thanks to previous developers. Secondly (and "sad but truth") - it is too hard to rely on external maintainers for code which you're going to actively develop or, at least, use in your own production.
8-
9-
NOTE: This library is *NOT* compatible with Kafka Clusters below version 0.10. Use the https://github.com/pingles/clj-kafka/[clj-kafka] for Kafka Clusters version 0.8 and 0.9 and https://github.com/DayoOliyide/kafkian[kafkian] for 0.9 and, may be, 0.10.0.0. It is mainly developed for 0.10.0.1 and 0.10.1.0.
3+
A Clojure library for the Kafka v1.0.0 release.
4+
5+
This library takes it's inspiration and some code from the
6+
https://github.com/pingles/clj-kafka/[clj-kafka]
7+
and from the https://github.com/DayoOliyide/kafkian[kafkian] libraries.
8+
9+
Current code was initially taken from
10+
https://github.com/DayoOliyide/kafkian[kafkian], but since Apache Kafka
11+
has very ugly backward compatibilities and developing this code goes
12+
break the chain -- it was not forked normally, but splitted and
13+
refactored to dedicated library with many thanks to previous developers.
14+
Secondly (and "sad but truth") - it is too hard to rely on external
15+
maintainers for code which you're going to actively develop or,
16+
at least, use in your own production.
17+
18+
NOTE: This library is *NOT* compatible with Kafka Clusters below version 0.10.
19+
Use the https://github.com/pingles/clj-kafka/[clj-kafka] for
20+
Kafka Clusters version 0.8 and 0.9 and
21+
https://github.com/DayoOliyide/kafkian[kafkian] for 0.9 and, may be, 0.10.0.0.
22+
It is mainly developed for 0.10.0.1 and 0.10.1.0.
1023

1124
image:https://img.shields.io/clojars/v/net.tbt-post/clj-kafka-x.svg[]
1225

1326
== Installation
1427

15-
Add the following to your http://github.com/technomancy/leiningen[Leiningen's] `project.clj`:
28+
Add the following to your http://github.com/technomancy/leiningen[Leiningen's]
29+
`project.clj`:
1630

1731
[source,clojure]
1832
----
19-
[net.tbt-post/clj-kafka-x "0.2.0-SNAPSHOT"]
33+
[net.tbt-post/clj-kafka-x "0.3.0-SNAPSHOT"]
2034
----
2135

2236
== Usage
@@ -47,7 +61,11 @@ Add the following to your http://github.com/technomancy/leiningen[Leiningen's] `
4761
(kc/messages c))
4862
----
4963

50-
NOTE: When you use multiple partitions per topic it is required to specify them explicitly when subscribing, i.e. `(kc/subscribe c [{:topic "topic-a" :partitions #{0 1}} {:topic "topic-b" :partitions #{0 1 2}}])`
64+
NOTE: When you use multiple partitions per topic it is required
65+
to specify them explicitly when subscribing, i.e.
66+
`(kc/subscribe
67+
c [{:topic "topic-a" :partitions #{0 1}}
68+
{:topic "topic-b" :partitions #{0 1 2}}])`
5169

5270
.Real-life (almost) example
5371
[source,clojure]
@@ -109,5 +127,6 @@ $ lein install
109127

110128
Copyright © 2016-2017
111129

112-
Distributed under the http://www.apache.org/licenses/LICENSE-2.0[Apache License v 2.0]
130+
Distributed under the
131+
http://www.apache.org/licenses/LICENSE-2.0[Apache License v 2.0]
113132

project.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
(defproject net.tbt-post/clj-kafka-x "0.2.0-SNAPSHOT"
2-
:description "A Clojure wrapper for Apache Kafka 0.10.x.x client"
1+
(defproject net.tbt-post/clj-kafka-x "0.3.0-SNAPSHOT"
2+
:description "A Clojure wrapper for Apache Kafka v1.0.0 client"
33
:url "https://github.com/source-c/clj-kafka-x"
44
:license {:name "Apache License 2.0"
55
:url "http://www.apache.org/licenses/LICENSE-2.0"}
66
:dependencies [[org.clojure/clojure "1.8.0"]
77
;; Kafka
8-
[org.apache.kafka/kafka_2.11 "0.10.0.1"
8+
[org.apache.kafka/kafka_2.12 "1.0.0"
99
:exclusions [javax.jms/jms
1010
com.sun.jdmk/jmxtools
1111
com.sun.jmx/jmxri
1212
org.slf4j/slf4j-log4j12]]
13-
[org.apache.zookeeper/zookeeper "3.4.6"
13+
[org.apache.zookeeper/zookeeper "3.4.10"
1414
:exclusions [org.slf4j/slf4j-log4j12]]
15-
[org.apache.kafka/kafka-clients "0.10.0.1"]
15+
[org.apache.kafka/kafka-clients "1.0.0"]
1616
[midje "1.8.3"]]
17-
:profiles {:docs {:plugins [[lein-pprint "1.1.2"]
17+
:profiles {:docs {:plugins [[lein-pprint "1.2.0"]
1818
[lein-codox "0.10.3"]
1919
[org.timmc/nephila "0.3.0"]]}})

0 commit comments

Comments
 (0)