forked from fusionapp/clj-documint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
81 lines (70 loc) · 2.54 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
(set! *warn-on-reflection* true)
(set-env!
:source-paths #{"src"}
:resource-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.8.0"]
[danielsz/boot-environ "0.0.5"]
[org.clojure/tools.cli "0.3.5"]
[org.clojure/tools.logging "0.4.0"]
[org.clojure/tools.nrepl "0.2.13"]
[org.danielsz/system "0.4.1"]
[org.xhtmlrenderer/flying-saucer-pdf-itext5 "9.1.9"]
[ring/ring-defaults "0.3.1"]
[ring/ring-jetty-adapter "1.6.3"]
[ring/ring-core "1.6.3"]
[danlentz/clj-uuid "0.1.7"]
[aleph "0.4.4"]
[liberator "0.15.1"]
[bidi "2.1.2"]
[compojure "1.6.0"]
[environ "1.1.0"]
[manifold "0.1.6"]
[org.apache.pdfbox/pdfbox "2.0.11"]
[org.bouncycastle/bcpkix-jdk15on "1.58"]
[org.bouncycastle/bcprov-jdk15on "1.58"]
[prismatic/schema "1.1.7"]
[com.twelvemonkeys.imageio/imageio-tiff "3.3.2"]
[com.twelvemonkeys.imageio/imageio-metadata "3.3.2"]
[com.levigo.jbig2/levigo-jbig2-imageio "2.0"]
[com.climate/claypoole "1.1.4"]
[iapetos "0.1.7"]
[io.prometheus/simpleclient_hotspot "0.1.0"]
[org.apache.xmlgraphics/fop "2.2"]
[com.fusionapp/css2xslfo "1.6.2"]
[boot-codox "0.10.4"]
])
(require
'[system.repl :as repl :refer [start stop go reset]]
'[documint.systems :refer [dev-system]]
'[danielsz.boot-environ :refer [environ]]
'[system.boot :refer [system run]]
'[codox.boot :refer [codox]]
)
(deftask dev
"Run a restartable system in the Repl"
[]
(comp
(watch :verbose true)
(system :sys #'dev-system :auto true :files ["clj$"] :regexes true)
(repl :server true)))
(deftask dev-run
"Run a dev system from the command line"
[]
(comp
(run :main-namespace "documint.core" :arguments [#'dev-system])
(wait)))
(deftask build
"Builds an uberjar of this project that can be run with java -jar"
[]
(comp
(aot :namespace '#{documint.core})
(pom :project 'myproject
:version "0.1.0-SNAPSHOT")
(uber)
(jar :main 'documint.core)))
(deftask docs
"Build the documentation with Codox"
[]
(codox :name "documint"
:output-path "target/codox"
:source-uri "https://github.com/fusionapp/clj-documint/blob/master/{filepath}#L{line}"))