Fork me on GitHub
#deps-new
<
2022-05-22
>
pinkfrog07:05:48

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

seancorfield17:05:37

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

seancorfield17:05:40

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

clojure-spin 1
pinkfrog23:05:49

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.

seancorfield01:05:39

: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

seancorfield01:05:54

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

seancorfield01:05:26

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