blob: 564005f13a48cc801e0920494b3a39c125d0824e (
plain)
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
|
(ns build
(:require [clojure.tools.build.api :as b]
[clojure.edn :as edn]))
(def class-dir "target/classes")
(def project (-> (edn/read-string (slurp "deps.edn"))
:aliases :neil :project))
(def lib (:name project))
(def version (:version project))
(def basis (b/create-basis {:project "deps.edn"}))
(def uber-file (format "target/%s-%s-standalone.jar" (name lib) version))
(def jar-file (format "target/%s-%s.jar" (name lib) version))
(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
:src-dirs ["src"]
:class-dir class-dir})
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis basis
:main 'dummy-auth.core}))
|