forked from FundingCircle/jackdaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
101 lines (85 loc) · 4.7 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
(defproject fundingcircle/jackdaw "_"
:description "A Clojure library for the Apache Kafka distributed streaming platform."
:scm {:name "git" :url "https://github.com/fundingcircle/jackdaw"}
:url "https://github.com/FundingCircle/jackdaw/"
:repositories [["confluent" {:url "https://packages.confluent.io/maven/"}
"mulesoft" {:url "https://repository.mulesoft.org/nexus/content/repositories/public/"}]]
:dependencies [[aleph "0.4.6"]
[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 "6.1.1"
:exclusions [com.fasterxml.jackson.core/jackson-databind]]
[io.confluent/kafka-avro-serializer "6.1.1"]
[io.confluent/kafka-json-schema-serializer "6.1.1"]
[org.apache.kafka/kafka-clients "2.8.0"]
[org.apache.kafka/kafka-streams "2.8.0"]
[org.apache.kafka/kafka-streams-test-utils "2.8.0"]
[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"]
[metosin/jsonista "0.3.3"]
;; Use specific netty version to avoid critical CVE
;; pulled by Aleph v0.4.6 (last stable version)
[io.netty/netty-transport "4.1.68.Final"]
[io.netty/netty-transport-native-epoll "4.1.68.Final"]
[io.netty/netty-codec "4.1.68.Final"]
[io.netty/netty-codec-http "4.1.68.Final"]
[io.netty/netty-handler "4.1.68.Final"]
[io.netty/netty-handler-proxy "4.1.68.Final"]
[io.netty/netty-resolver "4.1.68.Final"]
[io.netty/netty-resolver-dns "4.1.68.Final"]
;; Use specific commons-compress version to avoid
;; CVE-2021-36090 pulled by avro 1.9.2
[org.apache.commons/commons-compress "1.21"]]
: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/FundingCircle/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/"
:username :env/clojars_username
:password :env/clojars_password
:signing {:gpg-key "[email protected]"}}]]}
;; 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.8.0"]
[org.apache.kafka/kafka-clients "2.8.0" :classifier "test"]
[org.clojure/test.check "0.9.0"]
[org.apache.kafka/kafka_2.13 "2.8.0"]
[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]})