-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.boot
93 lines (76 loc) · 1.75 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
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
(task-options!
pom {:project
'confucius/confucius
:version
"0.0.4-SNAPSHOT"
:description
"A library for declarative configuration."
:scm
{:url "https://github.com/instilled/confucius"}
:url
"https://github.com/instilled/confucius"}
jar {:file "confucius.jar"})
(set-env!
:source-paths
#{"src/main/clojure"}
:resource-paths
#{"src/main/clojure"}
:target-path
"target"
:dependencies
'[[org.clojure/clojure "1.7.0"
:scope "provided"]
[org.yaml/snakeyaml "1.16"
:scope "provided"]
[org.clojure/data.json "0.2.6"
:scope "provided"]
;; test dependencies
[org.clojure/tools.cli "0.3.3"
:scope "test"]
[adzerk/boot-test "1.1.0"
:scope "test"]])
(require
'[adzerk.boot-test :refer :all])
(deftask remove-ignored
[]
(sift
:invert true
:include #{#".*\.swp" #".gitkeep"}))
(deftask dev
"Pull in test dependencies."
[]
(merge-env!
:source-paths
#{"src/test/clojure"}
:resource-paths
#{"src/test/resources"})
identity)
(replace-task!
[t test] (fn [& xs] (comp (dev) (apply t xs))))
(deftask test-repeatedly
"Repeatedly execute tests."
[]
(comp
(watch)
(speak)
(test)))
(deftask build
"Build the shizzle."
[]
;; Only :resource-paths will be added to the final
;; aritfact. Thus we need to merge :source-paths
;; into :resources-paths. see https://github.com/boot-clj/boot/wiki/Boot-Environment#env-keys
(merge-env!
:resource-paths
#{"src/main/clojure"})
(comp
(remove-ignored)
(pom)
(jar)
(target)
(install)))
(deftask deploy
[]
(push
:gpg-sign false
:repo "clojars"))