This repository was archived by the owner on Nov 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.boot
53 lines (41 loc) · 1.43 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
(set-env!
:source-paths #{"src"}
:dependencies '[; dev
[adzerk/bootlaces "0.1.13" :scope "test"]
[alda/core "0.1.2" :scope "test"]
[alda/sound-engine-clj "0.1.0" :scope "test"]
; dependencies
[com.taoensso/timbre "4.7.4"]
[io.aviso/pretty "0.1.33"]
[jline "2.12.1"]])
(require '[adzerk.bootlaces :refer :all])
(def ^:const +version+ "0.1.0")
(bootlaces! +version+)
(task-options!
pom {:project 'alda/repl-clj
:version +version+
:description "A Clojure implementation of an Alda REPL"
:url "https://github.com/alda-lang/alda-repl-clj"
:scm {:url "https://github.com/alda-lang/alda-repl-clj"}
:license {"name" "Eclipse Public License"
"url" "http://www.eclipse.org/legal/epl-v10.html"}}
jar {:file "alda-repl-clj.jar"}
install {:pom "alda/repl-clj"}
target {:dir #{"target"}})
(deftask dev
"Runs the Alda REPL for development."
[]
(comp
(with-pass-thru fs
(require 'alda.repl)
((resolve 'alda.repl/start-repl!)))
(wait)))
(deftask package
"Builds jar file."
[]
(comp (pom)
(jar)))
(deftask deploy
"Builds jar file, installs it to local Maven repo, and deploys it to Clojars."
[]
(comp (package) (install) (push-release)))