forked from babashka/pod-babashka-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.clj
28 lines (24 loc) · 989 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
27
28
;; 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
(:require [clojure.string :as str]
[clojure.tools.build.api :as b]))
(def lib 'pod-babashka-aws)
(def version (str/trim (slurp "resources/POD_BABASHKA_AWS_VERSION")))
(def class-dir "target/classes")
(def basis (b/create-basis {:project "deps.edn" :aliases [:native]}))
(def uber-file "target/pod-babashka-aws.jar")
(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"]
:ns-compile '[pod.babashka.aws]
:class-dir class-dir
:compile-opts {:direct-linking true}})
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis basis}))