tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
timo 2020-10-07T11:58:58.246700Z

for transitioning to clojure tools I am missing the lein install . How does one install a lib to local repository with clojure tools?

dominicm 2020-10-07T11:59:53.247400Z

@timok you don't really need to, you can reference it using :local/root

👍 1
timo 2020-10-07T12:00:17.247800Z

😆 easy as that. thanks @dominicm

practicalli-john 2020-10-07T12:32:07.249600Z

@timok as mentioned local/root is very useful. clojure -X:deps mvn-install is a built-in Clojure CLI alias to deploy a Jar of the project locally in the ~/.m2/repository directory

3
dharrigan 2020-10-07T12:37:49.250700Z

I find local/root very useful too. I pull down a 3rd party library, do some changes, and without having to deploy it anywhere, I can reference it in my own project by using the local/root structure to point to its sources.

➕ 1
kenny 2020-10-07T23:00:49.253400Z

On 1.10.1.697, if I try to "https://clojure.org/reference/repl_and_main#_launching_a_script," I get the warning "WARNING: When invoking clojure.main, use -M." Is this correct?

alexmiller 2020-10-07T23:16:00.253800Z

yes, there have been changes in the clj arguments in 697

alexmiller 2020-10-07T23:16:28.254100Z

those examples are (now) out of date, will fix

alexmiller 2020-10-07T23:16:41.254300Z

forgot they were there!