Is it possible to add new stuff to the classpath (e.g. editing project.clj and running lein deps) and then importing it to an existing Clojure session?
This is, without having to disconnect and then connect again.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use pomegranate to download new libraries and add them to your classpath at runtime. It won’t read directly from your project.clj, but does use a compatible syntax (using the Aether library which Leiningen 2 uses for its own dependency resolution).
Usage looks like so (quoting the README’s example):
That said, you do have to have pomegranate itself in your initial classpath before it can be used.