This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-22
Channels
- # announcements (4)
- # babashka (10)
- # beginners (25)
- # biff (4)
- # calva (22)
- # clj-on-windows (3)
- # clj-otel (1)
- # clojure (17)
- # clojure-europe (5)
- # clojure-gamedev (2)
- # clojure-norway (1)
- # clojurescript (21)
- # conjure (5)
- # core-async (3)
- # defnpodcast (1)
- # deps-new (8)
- # events (3)
- # graalvm (10)
- # graphql (4)
- # gratitude (2)
- # hyperfiddle (7)
- # introduce-yourself (4)
- # jobs (1)
- # membrane (9)
- # pedestal (5)
- # quil (2)
- # re-frame (7)
- # releases (2)
- # rewrite-clj (14)
- # shadow-cljs (8)
- # tools-deps (5)
@seancorfield Looks like the arg clojure -Spom
is nowhere document. How did you find this ?
It used to be in the docs but -X:deps mvn-pom
is the preferred way to do it now. The old -Spom
still works (for now).
The difference is in how aliases are handled when building the basis for creating the list of dependencies for the pom.xml
file.
The normal invocation is -X:alias some.ns/some-func
. Since we have only mvn-pom
alone, is it in the clojure.core
namespace? But doesn’t sound like so.
:deps
is an alias provided by the CLI itself that brings in tools.deps.alpha
. It has a default namespace so mvn-pom
is a function in that namespace, as are several other functions you can invoke via -X:deps
such as list
or tree
find-versions
, prep
are two others mentioned in the deps and CLI guide
There are several such functions described here https://clojure.org/reference/deps_and_cli