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➕
seancorfield 2020-10-07T16:45:21.252Z

I'm about to update things here...

seancorfield 2020-10-07T18:52:55.252200Z

Building our uber JARs for our 14 processes seems to produce near-identical results between .697 and .708 -- there are variations from run-to-run based (I assume) on differing timestamps etc but nothing more than 150 bytes on JAR files that range from 30MB to 70MB, so that all looks reasonably sane.

seancorfield 2020-10-07T18:53:56.252400Z

(if dependencies were missing we'd have known about it by now on .697 and 150 bytes here and there isn't likely to indicate an entire dependency coming or going)

alexmiller 2020-10-07T18:59:12.252600Z

yeah, shouldn't be anything different other than the set of jars selected

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!