-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.boot
64 lines (55 loc) · 2.25 KB
/
build.boot
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
(set-env!
:source-paths #{"src"}
:resource-paths #{"resources"}
:directories #{"config"}
:dependencies '[[org.clojure/clojure "1.9.0" :scope "provided"]
[com.taoensso/carmine "2.18.1"]
[org.mindrot/jbcrypt "0.4"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[zilti/boot-midje "0.2.2-SNAPSHOT" :scope "test"]
[com.h2database/h2 "1.4.197" :scope "test"]
[mysql/mysql-connector-java "8.0.11" :scope "test"]
[org.postgresql/postgresql "42.2.4" :scope "test"]
[com.github.kstyrc/embedded-redis "0.6" :scope "test"]
[ring/ring-defaults "0.3.2"]
[ring/ring-anti-forgery "1.3.0"]
[midje "1.9.9" :scope "test"]
[peridot "0.5.1" :scope "test"]
[compojure "1.6.1" :scope "test"]
[http-kit "2.3.0" :scope "test"]
[cprop "0.1.11" :scope "test"]
[mount "0.1.12" :scope "test"]
[conman "0.7.4"]
[crypto-random "1.2.0"]
[selmer "1.11.8"]
[failjure "1.3.0"]
[ring-middleware-format "0.7.4"]
[digest "1.4.8"]])
(def +version+ "2.0.0")
;; to check the newest versions:
;; boot -d boot-deps ancient
(require
'[cerber.oauth2.standalone.system]
'[adzerk.bootlaces :refer [bootlaces! build-jar push-release push-snapshot]]
'[zilti.boot-midje :refer [midje]])
(bootlaces! +version+)
;; which source dirs should be monitored for changes when resetting app?
(apply clojure.tools.namespace.repl/set-refresh-dirs (get-env :source-paths))
(deftask go
[]
(cerber.oauth2.standalone.system/go))
(deftask reset
[]
(cerber.oauth2.standalone.system/reset))
(deftask tests
"Environment for test-driven development."
[]
(comp (watch)
(midje)
(speak)))
(task-options! midje {:test-paths #{"test"}}
pom {:project 'cerber/cerber-oauth2-provider
:version +version+
:description "OAuth2 provider"
:url "https://github.com/mbuczko/cerber-oauth2-provider"
:scm {:url "https://github.com/mbuczko/cerber-oauth2-provider"}})