-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.clj
26 lines (22 loc) · 810 Bytes
/
build.clj
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
;; see https://ask.clojure.org/index.php/10905/control-transient-deps-that-compiled-assembled-into-uberjar?show=10913#c10913
(require 'clojure.tools.deps.alpha.util.s3-transporter)
(ns build
(:refer-clojure :exclude [compile])
(:require
[clojure.tools.build.api :as b]))
(def class-dir "target/classes")
(def version "0.0.1")
(def uber-basis
(b/create-basis {:project "deps.edn"
:aliases [:native-deps]}))
(defn uber [_]
(println "Compiling sources sources.")
(b/compile-clj {:basis uber-basis
:src-dirs ["src"]
:class-dir class-dir
:ns-compile '[jayfu.main]})
(println "Building uberjar.")
(b/uber {:class-dir class-dir
:uber-file "jayfu.jar"
:basis uber-basis
:main 'jayfu.main}))