I'm learning Clojure, but I'm not really building whole projects for each little code snippet, I just drop them into a REPL. Occasionally code snippets I'm exploring require a dependency (usually something that is/was in clojure.contrib).
The only way I know how to get those dependencies onto my computer is to have an empty leiningen project, add the dependency to project.clj and run lein deps
.
Is there any way I can download libraries globally, outside of a project? If it's that I really really don't want to, why?
java -cp clojure.jar:some-lib-clj.jar clojure.main
3) What's so bad about having a scratch Leiningen project? – Monophysite