-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.clj
More file actions
26 lines (21 loc) · 808 Bytes
/
build.clj
File metadata and controls
26 lines (21 loc) · 808 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
(ns build
(:require [clojure.tools.build.api :as b]))
(def lib 'io.github.krukow/edmondson)
(def version (format "1.0.%s" (b/git-count-revs nil)))
(def class-dir "target/classes")
(def jupyter-basis (b/create-basis {:project "deps.edn"
:aliases [:jupyter]}))
(def uber-file (format "target/%s-%s-standalone.jar" (name lib) version))
(defn clean [_]
(b/delete {:path "target"}))
(defn uber [_]
(clean nil)
(b/copy-dir {:src-dirs ["src/main/clojure" "src/main/resources"]
:target-dir class-dir})
(b/compile-clj {:basis jupyter-basis
:src-dirs ["src/main/clojure"]
:class-dir class-dir})
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis jupyter-basis})
(println uber-file))