diff --git a/.build/uberjar.edn b/.build/uberjar.edn new file mode 100644 index 0000000..136a3ec --- /dev/null +++ b/.build/uberjar.edn @@ -0,0 +1,2 @@ +{:paths ["src"] + :deps {org.babashka/cli {:mvn/version "0.2.24"}}} diff --git a/.gitignore b/.gitignore index 3f031fa..879fe81 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .cache .cpcache target +/http-server.jar diff --git a/bb.edn b/bb.edn index e05f4f3..c20e5ed 100644 --- a/bb.edn +++ b/bb.edn @@ -29,9 +29,13 @@ (shell "git commit -m" (str "v" (utils/format-version))) (shell "git tag" (str "v" (utils/format-version))) (shell "git push --tags"))} - + publish {:doc "Bump release count and publish to clojars" :task (do (when-not (:skip-bump cmd-line-opts) (run 'bump-release)) - (clojure "-T:build deploy"))}}} + (clojure "-T:build deploy"))} + + package:jar {:doc "Prepare jar for packages" + :task (shell "bb --config .build/uberjar.edn --deps-root . + uberjar http-server.jar -m babashka.http-server")}}}