(ns build
  (:require [clojure.tools.build.api :as b]))

(def basis (delay (b/create-basis {:project "deps.edn"})))

(defn uberjar [_]
  (b/delete {:path "target"})
  (b/compile-clj {:basis @basis
                   :src-dirs ["src"]
                   :class-dir "target/classes"})
  (b/uber {:class-dir "target/classes"
            :uber-file "target/nol.jar"
            :basis @basis
            :main 'nol.core}))
