forked from FundingCircle/jackdaw
-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
80 lines (67 loc) · 3.51 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
(defproject dakra/jackdaw "_"
:description "A Clojure library for the Apache Kafka distributed streaming platform."
:scm {:name "git" :url "https://github.com/dakra/jackdaw"}
:url "https://github.com/dakra/jackdaw/"
:repositories [["confluent" {:url "https://packages.confluent.io/maven/"}]]
:dependencies [[aleph "0.4.6"]
[clj-time "0.15.1"]
[danlentz/clj-uuid "0.1.9"
:exclusions [primitive-math]]
;; Confluent does paired releases with Kafka, this should tie
;; off with the kafka version.
;; See https://docs.confluent.io/current/release-notes.html
[io.confluent/kafka-schema-registry-client "5.3.1"
:exclusions [com.fasterxml.jackson.core/jackson-databind]]
[io.confluent/kafka-avro-serializer "5.3.1"]
[org.apache.kafka/kafka-clients "2.4.1"]
[org.apache.kafka/kafka-streams "2.4.1"]
[org.apache.kafka/kafka-streams-test-utils "2.4.1"]
[org.clojure/clojure "1.10.1" :scope "provided"]
[org.clojure/data.json "0.2.6"]
[org.clojure/data.fressian "0.2.1"]
[org.clojure/tools.logging "0.4.1"]
[org.clojure/core.cache "0.7.2"]]
:aliases {"kaocha" ["run" "-m" "kaocha.runner"]}
:aot [jackdaw.serdes.edn2 jackdaw.serdes.fressian jackdaw.serdes.fn-impl]
:plugins [[me.arrdem/lein-git-version "2.0.8"]]
:git-version
{:status-to-version
(fn [{:keys [tag version branch ahead ahead? dirty?] :as git}]
(if (and tag (not ahead?) (not dirty?))
tag
(let [[_ prefix patch] (re-find #"(\d+\.\d+)\.(\d+)" tag)
patch (Long/parseLong patch)
patch+ (inc patch)
branch+ (-> branch
(.replaceAll "[^a-zA-Z0-9]" "_"))]
(format "%s.%d-%s-SNAPSHOT" prefix patch+ branch+))))}
:profiles {;; Provide an alternative to :leiningen/default, used to include :shared
:default
[:base :system :user :shared :provided :dev]
;; Define a profile intended to be shared by this project and its children
:shared
{:url "https://github.com/dakra/jackdaw"
:license {:name "BSD 3-clause"
:url "http://opensource.org/licenses/BSD-3-Clause"}
:repositories
[["confluent"
"https://packages.confluent.io/maven/"]]
:deploy-repositories
[["clojars" {:url "https://clojars.org/repo/"}]]}
;; The dev profile - non-deployment configuration
:dev
{:source-paths
["dev"]
:resource-paths ["test/resources"]
:injections [(require 'io.aviso.logging.setup)]
:dependencies [[io.aviso/logging "0.3.2"]
[org.apache.kafka/kafka-streams-test-utils "2.4.1"]
[org.apache.kafka/kafka-clients "2.4.1" :classifier "test"]
[org.clojure/test.check "0.9.0"]
[org.apache.kafka/kafka_2.11 "2.4.1"]
[lambdaisland/kaocha "0.0-529"]
[lambdaisland/kaocha-cloverage "0.0-32"]
[lambdaisland/kaocha-junit-xml "0.0-70"]]}
;; This is not in fact what lein defines repl to be
:repl
[:default :dev]})