This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-06
Channels
- # babashka (130)
- # beginners (97)
- # biff (36)
- # calva (6)
- # cherry (23)
- # clojure (29)
- # clojure-dev (1)
- # clojure-europe (9)
- # clojurescript (5)
- # datomic (24)
- # emacs (13)
- # fulcro (5)
- # hyperfiddle (33)
- # interop (2)
- # jobs (18)
- # kaocha (1)
- # london-clojurians (1)
- # lsp (20)
- # nrepl (1)
- # off-topic (60)
- # pathom (4)
- # reitit (7)
- # releases (1)
- # remote-jobs (4)
- # scittle (3)
- # specter (1)
- # tools-deps (7)
- # xtdb (16)
What is the most similar command to lein deps
? clj -X:deps prep
?
:thinking_face: I was thinking about downloading project dependencies
I think prep would be fine for that, but I think -P is explicitly for that purpose
A long time ago lein would copy the dependencies jars into your projects directory tree instead of just using them out of m2, which if I recall was what lein deps originally did
clojure -P
is the command you are looking for. The -P execution flag can also be used with other aliases via one of the other execution flags, e.g clojure -P -M:test/libs:build/libs
to download the main dependencies and those for testing and building a project, as common in a CI workflow
https://practical.li/clojure/clojure-cli/execution-options/#prepare-dependencies
That doc is really awesome, funny that I discovered clojure -P after running clj -h
that is not my usual workflow, I prefer reading a doc. Thanks lot, this will be useful for my learning 🙂