This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-29
Channels
- # announcements (6)
- # beginners (110)
- # calva (18)
- # clj-kondo (19)
- # cljs-dev (27)
- # clojars (10)
- # clojure (38)
- # clojure-art (2)
- # clojure-europe (13)
- # clojure-germany (1)
- # clojure-norway (26)
- # clojure-uk (2)
- # clojurescript (10)
- # conjure (9)
- # cursive (12)
- # data-science (3)
- # datomic (22)
- # emacs (8)
- # helix (9)
- # honeysql (18)
- # introduce-yourself (1)
- # jobs (1)
- # leiningen (8)
- # lsp (22)
- # missionary (9)
- # nbb (11)
- # off-topic (83)
- # pathom (5)
- # pedestal (4)
- # polylith (1)
- # portal (1)
- # re-frame (3)
- # reitit (15)
- # remote-jobs (1)
- # rum (4)
- # shadow-cljs (88)
- # specter (12)
- # testing (1)
- # vim (39)
We currently show lein/boot/maven instructions on the homepage. Do folks still use boot? Should we replace boot (or maven?) with tools.build (or build-clj) instructions?
According to the https://clojure.org/news/2022/06/02/state-of-clojure-2022 survey, it's a very small marketshare
I don't think boot is big enough to be worth having there. maven still useful imo. not sure there is a standard enough way to do with deps.edn yet (tools.build does not cover this)
@U06SGCEHJ for the Clojure CLI, you'll want to point to https://github.com/slipset/deps-deploy for the actual push of the JAR up to Clojars; for building library JARs there are quite a few options but linking to https://clojure.org/guides/tools_build#_source_library_jar_build is probably sufficient. Whilst my build-clj
wrapper helps "a bit" with library JARs, it doesn't really add enough to "enshrine" it on http://clojars.org (it can replace three tools.build
calls with one build-clj
call -- but it's a lot more useful for uberjars 🙂 ).
(building the library JAR with tools.build
and using mvn
to deploy to Clojars is also reasonable -- and how I used to do it before deps-deploy
appeared)
Thanks all. boot was added pre-Clojure CLI, when it was in ascendance. I think it makes sense to replace it with a cli invocation (with the assumption that you are using deps-deploy, just as the boot example assumes bootlaces). How does this look?
It leaves out the detail of providing CLOJARS_USERNAME
and CLOJARS_PASSWORD
env vars, but including them makes it noisy, and you have to read the deps-deploy directions anyway, which does cover that.
I would recommend:
clojure -X:deps mvn-pom
clojure -X:deploy
It's better practice to use the bare clojure
command when not doing anything interactive (`rlwrap` is not needed or useful for non-interactive commands). Also, -Spom
is no longer documented and the "modern" way is to create pom.xml
via -X:deps
.Gotcha, thanks! I was just going off of the instructions here: https://github.com/slipset/deps-deploy#usage, but I'll use yours.