-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbuild.boot
51 lines (43 loc) · 1.29 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
(set-env!
:resource-paths #{"src"}
:source-paths #{"test"}
:dependencies '[[org.clojure/clojure "1.9.0" :scope "provided"]
[http-kit "2.3.0" :scope "test"]
[metosin/bat-test "0.4.0" :scope "test"]])
(require '[metosin.bat-test :refer [bat-test]])
(def +version+ "0.6.1")
(task-options!
pom {:project 'adzerk/boot-reload
:version +version+
:description "Boot task to automatically reload page resources in the browser."
:url "https://github.com/adzerk/boot-reload"
:scm {:url "https://github.com/adzerk/boot-reload"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}})
(deftask build []
(comp
(pom)
(jar)
(install)))
(ns-unmap *ns* 'test)
(deftask test []
(comp
(bat-test)))
(deftask dev []
(comp
(watch)
(repl :server true)
(test)
(build)
(target)))
(deftask deploy []
(comp
(test)
(build)
(push :repo "clojars"
;; Clojars needs different deploy url.
:repo-map {:url "https://clojars.org/repo"}
;; Boot uses old pomegranate and doesn't setup checksums for gpg files
;; clojars now needs.
; :gpg-sign (not (.endsWith +version+ "-SNAPSHOT"))
)))