forked from Provisdom/spectomic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.boot
53 lines (44 loc) · 1.78 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
53
(def project 'provisdom/spectomic)
(def version "0.7.7")
(set-env! :resource-paths #{"src"}
:source-paths #{"test"}
:dependencies '[[adzerk/boot-test "1.2.0" :scope "test"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[org.clojure/test.check "0.9.0" :scope "test"]
[com.datomic/datomic-free "0.9.5561.62" :scope "test"]
[datascript "0.16.4" :scope "test"]
[org.clojure/clojure "1.9.0" :scope "provided"]
[org.clojure/spec.alpha "0.1.143"]])
(require '[adzerk.boot-test :refer [test]]
'[adzerk.bootlaces :refer :all])
(bootlaces! version)
(task-options!
pom {:project project
:version version
:description "FIXME: write description"
:url "http://example/FIXME"
:scm {:url "https://github.com/yourname/spectomic"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}}
test {:include #".*-test$"})
(deftask dev-env
[]
(set-env!
:repositories #(conj %
["datomic" {:url "https://my.datomic.com/repo"
:username (System/getenv "DATOMIC_USERNAME")
:password (System/getenv "DATOMIC_PASSWORD")}])
:dependencies #(conj % '[com.datomic/datomic-pro "0.9.5561"]))
identity)
(replace-task!
[r repl]
(fn [& xs]
(dev-env)
(apply r xs)))
(when-let [v (resolve 'lein-generate)]
(alter-var-root v
(fn [g]
(fn [& xs] (dev-env) (apply g xs)))))
(deftask deploy
[]
(comp (build-jar) (push-release)))