-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.boot
37 lines (33 loc) · 880 Bytes
/
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
(set-env!
:dependencies '[[org.clojure/clojure "1.10.1"]
[grimradical/clj-semver "0.3.0"]
[clj-time "0.15.1"]]
:resource-paths #{"src"})
(require
'[degree9.boot-semver :refer :all])
(task-options!
pom {:project 'degree9/boot-semver
:description "Semantic versioning for boot projects."
:url "https://github.com/degree9/boot-semver"
:scm {:url "https://github.com/degree9/boot-semver"}}
target {:dir #{"target"}})
(deftask develop
"Build boot-semver for development."
[]
(comp
(version :develop true
:minor 'inc
:patch 'zero
:pre-release 'snapshot)
(watch)
(target)
(build-jar)
(push-snapshot)))
(deftask deploy
"Build boot-semver and deploy to clojars."
[]
(comp
(version)
(target)
(build-jar)
(push-release)))