-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathbuild.boot
57 lines (48 loc) · 2.15 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
54
55
56
57
(def +version+ "0.1.1")
(set-env!
:source-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.10.1" :scope "provided"]
;; test deps
[org.clojure/data.xml "0.2.0-alpha2" :scope "test"]
[org.clojure/data.zip "0.1.2" :scope "test"]
[funcool/tubax "0.2.0" :scope "test"]
[ch.qos.logback/logback-classic "1.1.3" :scope "test"]
[org.clojure/tools.logging "0.3.1" :scope "test"]
;; boot clj
[boot/core "2.7.1" :scope "provided"]
[adzerk/bootlaces "0.1.13" :scope "test"]
[adzerk/boot-logservice "1.2.0" :scope "test"]
[adzerk/boot-test "1.1.1" :scope "test"]
[tolitius/boot-check "0.1.4" :scope "test"]])
(require '[adzerk.bootlaces :refer :all]
'[adzerk.boot-test :as bt]
'[adzerk.boot-logservice :as log-service]
'[tolitius.boot-check :as check]
'[clojure.tools.logging :as log])
(bootlaces! +version+)
(def log4b
[:configuration
[:appender {:name "STDOUT" :class "ch.qos.logback.core.ConsoleAppender"}
[:encoder [:pattern "%-5level %logger{36} - %msg%n"]]]
[:root {:level "TRACE"}
[:appender-ref {:ref "STDOUT"}]]])
(deftask dev []
(alter-var-root #'log/*logger-factory*
(constantly (log-service/make-factory log4b)))
(repl))
(deftask check-sources []
;; (set-env! :source-paths #(conj % "dev/clj" "dev/cljs" "test/core" "test/clj" "test/cljs"))
(comp
(check/with-bikeshed)
(check/with-eastwood)
(check/with-yagni)
(check/with-kibit)))
(task-options!
push {:ensure-branch nil}
pom {:project 'tolitius/xml-in
:version +version+
:description "your friendly XML navigator"
:url "https://github.com/tolitius/xml-in"
:scm {:url "https://github.com/tolitius/xml-in"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}})