(ns build (:require [clojure.tools.build.api :as b])) (def lib 'pmagnus/btcprice) (def version "0.0.1-SNAPSHOT") (def target-dir "target") (def class-dir (str target-dir "/classes")) (def basis (delay (b/create-basis {:project "deps.edn"}))) (def uber-file (str target-dir "/btcprice-standalone.jar")) (defn clean [_] (b/delete {:path target-dir})) (defn uber [_] (clean nil) (b/copy-dir {:src-dirs ["src/clj" "resources" "env/prod/resources" "env/prod/clj"] :target-dir class-dir}) (b/compile-clj {:basis @basis :ns-compile '[pmagnus.btcprice.core] :class-dir class-dir}) (b/uber {:class-dir class-dir :uber-file uber-file :basis @basis :main 'pmagnus.btcprice.core})) (defn all [_] (uber nil))