-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.clj
More file actions
28 lines (24 loc) · 777 Bytes
/
build.clj
File metadata and controls
28 lines (24 loc) · 777 Bytes
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
(ns build
(:require [clojure.tools.build.api :as b]))
(def class-dir "target/classes")
(def uber-file "target/datalevin-docs-standalone.jar")
(def basis (delay (b/create-basis {:project "deps.edn"
:aliases [:prod]})))
(defn clean [_]
(b/delete {:path "target"}))
(defn uber [_]
(clean nil)
(b/copy-dir {:src-dirs ["src" "resources"]
:target-dir class-dir})
(b/compile-clj {:basis @basis
:class-dir class-dir
:ns-compile '[datalevin.docs.core]})
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis @basis
:main 'datalevin.docs.core})
(println "Built:" uber-file))
(comment
;; Build a runnable uberjar.
;; clojure -T:build uber
)