This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-22
Channels
- # beginners (10)
- # boot (134)
- # cider (29)
- # clara (2)
- # cljs-dev (10)
- # cljsjs (2)
- # cljsrn (13)
- # clojure (76)
- # clojure-india (4)
- # clojure-ireland (1)
- # clojure-russia (20)
- # clojure-spec (11)
- # clojure-uk (7)
- # clojurescript (88)
- # core-async (5)
- # core-logic (3)
- # cursive (17)
- # datascript (5)
- # datomic (123)
- # hoplon (8)
- # klipse (6)
- # lambdaisland (2)
- # leiningen (4)
- # luminus (2)
- # off-topic (23)
- # om (23)
- # om-next (1)
- # onyx (20)
- # pedestal (2)
- # perun (2)
- # re-frame (11)
- # ring-swagger (3)
- # untangled (12)
M-x cljr-add-project-dependency
@mattford The reason is you have to modify your classpath. The way lein works is, it generates the classpath, which is a collection of jar files (not directories), and then feeds it to java. Something like java -jar mylib1.jar:mylib2.jar:clojure.jar which you can see via lein classpath
. There are tools to add new jars to the classpath after the system starts, which is what cljr-add-project-dependency
does I believe.
@mattford If you add a dependency to a Clojure project you need to stop the REPL (assuming its running) and start the REPL again so that the library can be added by the JVM class loader. If you have clj-refactor, as mentioned, there is a hot loading option that will add your new dependency into your project without stopping & starting the REPL
@ustunozgur snap 🙂