-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.clj
46 lines (38 loc) · 1.99 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
(defproject telegrambot-lib "2.15.0"
;;; Project Metadata
:description "A library for interacting with the Telegram Bot API."
:url "https://github.com/wdhowe/telegrambot-lib"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
;;; Dependencies, Plugins
:dependencies [[clj-http "3.13.0"]
[environ "1.2.0"]
[org.clojure/clojure "1.11.3"]
[org.clojure/core.async "1.6.681"]
[org.clojure/tools.logging "1.3.0"]
[potemkin "0.4.7"]]
;;; Profiles
;; logback-classic must be 1.3.x due to jdk8 support.
;; See: https://github.com/wdhowe/telegrambot-lib/pull/120/commits/015d31621a3fd5a7f69dcf7c230d76d55f7a47c1
:profiles {;; REPL Jack-in with :dev,:local for development.
:dev {:dependencies [[ch.qos.logback/logback-classic "1.3.5" :upgrade :logback]
[org.clojure/data.json "2.5.0"]]
:plugins [[lein-environ "1.2.0"]]
:resource-paths ["env/dev/resources"]}
;; Makes the 'local' profile available during REPL jack-in.
;; Loads from profiles.clj (git ignored).
:local {}
;; A default test dep for json is required in order for cljdoc-analyze to pass.
:test {:dependencies [[org.clojure/data.json "2.5.0"]
[clj-http-fake/clj-http-fake "1.0.4"]]
:plugins [[lein-environ "1.2.0"]]
:resource-paths ["env/test/resources"]}
;; Profiles for testing json libraries.
:data.json {:dependencies [[org.clojure/data.json "2.5.0"]]}
:cheshire {:dependencies [[cheshire "5.13.0"]]}
:jsonista {:dependencies [[metosin/jsonista "0.3.8"]]}}
;;; Testing
:test-selectors {:default (complement :json)
:json :json}
;;; Repl
:repl-options {:init-ns telegrambot-lib.core})