Skip to content

Commit

Permalink
Add package:jar
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jun 24, 2022
1 parent 3b7f784 commit 9c49a68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .build/uberjar.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:paths ["src"]
:deps {org.babashka/cli {:mvn/version "0.2.24"}}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cache
.cpcache
target
/http-server.jar
8 changes: 6 additions & 2 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}}

0 comments on commit 9c49a68

Please sign in to comment.