get config and is_tech working

This commit is contained in:
Travis Shears 2025-07-16 20:50:02 +02:00
parent 77ae02c8b8
commit 8e0d00035a
5 changed files with 109 additions and 0 deletions

25
build.clj Normal file
View file

@ -0,0 +1,25 @@
(ns build
(:require [clojure.tools.build.api :as b]))
(def lib 'snippets)
(def class-dir "target/classes")
(def uber-file (format "target/%s-standalone.jar" (name lib)))
;; delay to defer side effects (artifact downloads)
(def basis (delay (b/create-basis {:project "deps.edn"})))
(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
:ns-compile '[snippets.main]
:class-dir class-dir})
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis @basis
:main 'snippets.main}))