-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
39 lines (34 loc) · 1.5 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
(def project 'ewallet-api)
(def version "0.1.0-SNAPSHOT")
(set-env! :resource-paths #{"resources" "src"}
:source-paths #{"test"}
:dependencies '[[org.clojure/clojure "RELEASE"]
[clj-time "0.14.2"]
[ring/ring-core "1.6.3"]
[ring/ring-json "0.4.0"]
[ring/ring-jetty-adapter "1.6.3"]
[ring/ring-devel "1.6.3"]
[compojure "1.6.0"]
[adzerk/boot-test "RELEASE" :scope "test"]])
(task-options!
aot {:namespace #{'ewallet-api.core}}
pom {:project project
:version version
:description "FIXME: write description"
:url "http://example/FIXME"
:scm {:url "https://github.com/yourname/ewallet-api"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}}
jar {:main 'ewallet-api.core
:file (str "ewallet-api-" version "-standalone.jar")})
(deftask build
"Build the project locally as a JAR."
[d dir PATH #{str} "the set of directories to write to (target)."]
(let [dir (if (seq dir) dir #{"target"})]
(comp (aot) (pom) (uber) (jar) (target :dir dir))))
(deftask run-dev
"Run server hot reloading Clojure namespaces"
[p port PORT int "Server port (default 3000)"]
(require '[app])
(apply (resolve 'app/run-dev-server) [(or port 3000)]))
(require '[adzerk.boot-test :refer [test]])