Fork me on GitHub
#leiningen
<
2017-04-27
>
macrobartfast00:04:38

I want to be able to add deps to a clojure project like one can in node with 'npm install --save'... so far, the only thing I've found is lein plz ( https://github.com/johnwalker/lein-plz )... is that the best resource to use?

macrobartfast00:04:20

and, if so, where can I add a lein plugin so it's available in all new projects (as far as I can tell I'd have to add it to each new project.clj)?

noonian00:04:23

You can create the file ~/.lein/profiles.clj and add plugins to your :user profile there.

noonian00:04:59

I haven’t tried lein-plz or heard of anything else that does that kind of thing so I recommend giving it a shot

macrobartfast00:04:23

man, I hope lein plz works... this need-dep->clojars->copy->paste-into-project.clj is a lot of work.

macrobartfast00:04:38

@noonian thanks for the help!

noonian00:04:42

No problem!

jumar08:04:15

@macrobartfast I use spacemacs and often leverage cljr-add-project-dependency to quickly add dependency to project.clj and hot-load it (If repl is running) at the same time. this is really great and quick way.

cgrand12:04:45

I’m trying to get the list of JVM opts computed by lein (a bit like lein classpath but for opts), is there something simpler than the snippet below?

lein update-in : assoc :eval-in :leiningen -- run -m clojure.main -e "(apply println (@#'leiningen.core.eval/get-jvm-args (leiningen.core.project/read)))"

waffletower17:04:34

In today’s clojure 1.9-alpha16 release, I am seeing an exception when loading clojure.spec as an injection in my leiningen profile. It did work in alpha15.

Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/spec__init.class or clojure/spec.clj on classpath., compiling:(/private/var/folders/k2/__8r58f5187f92xw3pm0r4c80000gp/T/form-init2055821512506886799.clj:1:125)
thought I would start asking here first rather than the general list

jumar19:04:37

@waffletower it might be related to the clojure spec namespace change (clojure.spec.alpha) - check https://groups.google.com/forum/#!msg/clojure/nB4qnDNGS2A/epdsXz6DAQAJ