This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-27
Channels
- # beginners (35)
- # boot (111)
- # cider (12)
- # clojure (295)
- # clojure-android (2)
- # clojure-dev (12)
- # clojure-dusseldorf (9)
- # clojure-finland (1)
- # clojure-greece (7)
- # clojure-italy (24)
- # clojure-norway (1)
- # clojure-poland (7)
- # clojure-russia (14)
- # clojure-sg (1)
- # clojure-spec (29)
- # clojure-uk (25)
- # clojurebridge (1)
- # clojurescript (157)
- # clr (3)
- # cursive (3)
- # datomic (55)
- # docker (6)
- # hoplon (4)
- # juxt (11)
- # leiningen (13)
- # luminus (1)
- # lumo (3)
- # mount (1)
- # off-topic (47)
- # om (43)
- # onyx (35)
- # re-frame (33)
- # reactive (2)
- # reagent (4)
- # rum (3)
- # schema (5)
- # specter (5)
- # test-check (63)
- # vim (15)
- # yada (14)
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?
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)?
You can create the file ~/.lein/profiles.clj
and add plugins to your :user
profile there.
ah ok gotcha
I haven’t tried lein-plz
or heard of anything else that does that kind of thing so I recommend giving it a shot
man, I hope lein plz works... this need-dep->clojars->copy->paste-into-project.clj is a lot of work.
@noonian thanks for the help!
@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.
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)))"
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@waffletower it might be related to the clojure spec namespace change (clojure.spec.alpha) - check https://groups.google.com/forum/#!msg/clojure/nB4qnDNGS2A/epdsXz6DAQAJ