-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.boot
30 lines (26 loc) · 1.17 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
(def project 'fudge)
(def version "0.1.0-SNAPSHOT")
(set-env! :resource-paths #{"src" "test"}
:source-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.8.0"]
[adzerk/boot-test "RELEASE" :scope "test"]
[clojure.java-time "0.2.2"]
[cheshire "5.7.0"]
[it.frbracch/boot-marginalia "0.1.3-1"]])
(task-options!
pom {:project project
:version version
:description "Fudge: Just Enough Logging"
:url "https://github.com/osfameron/fudge"
:scm {:url "https://github.com/osfameron/fudge"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}}
jar {:main 'fudge.log
:file (str "fudge-" 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 (pom) (uber) (jar) (target :dir dir))))
(require '[adzerk.boot-test :refer [test]])
(require '[it.frbracch.boot-marginalia :refer [marginalia]])