deps-new

2022-05-22T07:28:48.301079Z

@seancorfield Looks like the arg clojure -Spom is nowhere document. How did you find this ?

seancorfield 2022-05-22T17:08:37.251089Z

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).

seancorfield 2022-05-22T17:09:40.404319Z

The difference is in how aliases are handled when building the basis for creating the list of dependencies for the pom.xml file.

1
2022-05-22T23:00:49.473979Z

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.

seancorfield 2022-05-23T01:35:39.138169Z

: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

seancorfield 2022-05-23T01:36:54.399069Z

find-versions, prep are two others mentioned in the deps and CLI guide

seancorfield 2022-05-23T01:38:26.548989Z

There are several such functions described here https://clojure.org/reference/deps_and_cli

2022-05-23T06:06:58.150489Z

Yup. ns-default https://clojure.org/reference/deps_and_cli#_arg_map_keys

👍🏻 1