-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
63 lines (52 loc) · 1.65 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
(set-env!
:resource-paths #{"src"}
:dependencies '[[degree9/boot-semver "1.6.0" :scope "test"]])
(require '[degree9.boot-semver :refer :all])
(task-options! pom {:project 'powerlaces/boot-sources
:description "Boot tasks to move, collect, manage source files."
:url "https://github.com/boot-clj/boot-sources"
:scm {:url "https://github.com/boot-clj/boot-sources.git"}
:license {"Eclipse Public License" "http://www.eclipse.org/legal/epl-v10.html"}})
(ns-unmap 'boot.user 'test)
(ns-unmap 'boot.user 'install)
;; -- My Tasks --------------------------------------------
(deftask install
"Install the artifact to the local .m2."
[]
(comp
(version)
(build-jar)))
(deftask install-snapshot
"Install the artifact to the local .m2 but always using a SNAPSHOT version.
Note that this task does not modify version.properties."
[]
(comp
(version :develop true
:minor 'inc
:patch 'zero
:pre-release 'snapshot)
(build-jar)))
(deftask deploy
"Build boot-sources and deploy to Clojars."
[]
(comp
(version)
(build-jar)
(push-release)))
(deftask set-dev! []
(set-env! :source-paths #(conj % "test")
:dependencies #(into % '[[adzerk/boot-test "RELEASE" :scope "test"]
[boot/core "RELEASE"]]))
(require 'adzerk.boot-test))
(deftask test
"Testing once (dev profile)"
[]
(set-dev!)
(comp ((eval 'adzerk.boot-test/test))))
(deftask auto-test
"Start auto testing mode (dev profile)"
[]
(set-dev!)
(comp (watch)
(speak)
((eval 'adzerk.boot-test/test))))