-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
53 lines (42 loc) · 1.53 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
(def project 'kushki-clojure)
(def version "0.1.0")
(set-env! :resource-paths #{"resources"}
:source-paths #{"src" "test"}
:dependencies '[[adzerk/boot-test "RELEASE" :scope "test"]
[environ "1.1.0"]
[boot-environ "1.1.0"]
[clj-http "3.7.0"]
[cheshire "5.8.0"]
[boot-codox "0.10.3" :scope "test"]
[adzerk/bootlaces "0.1.13" :scope "test"]])
(require '[adzerk.bootlaces :refer :all])
(def +version+ "0.1.0")
(bootlaces! +version+)
(task-options!
pom {:project project
:version version
:description "Cliente en Clojure para el API de Kushki"
:url "http://github.com/datil/kushki-clojure"
:scm {:url "https://github.com/datil/kushki-clojure"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}})
(deftask build
"Build and install the project locally."
[]
(comp (pom) (jar) (install)))
(require '[adzerk.boot-test :refer [test]])
(require '[environ.boot :refer [environ]])
(def config (let [f (clojure.java.io/file "config.edn")]
(if (.exists f) (-> f slurp read-string) {})))
(deftask dev
[]
(environ :env config))
(require '[codox.boot :refer [codox]])
(deftask docs []
(comp
(codox
:name "kushki-clojure"
:description "Librería para Kushki en Clojure"
:source-paths ["src"]
:version "1.0.0")
(target)))