简体   繁体   中英

Is it possible to make lein include all clojure libraries in the user profile?

I know that I can depend on one by adding a line like

[org.clojure/math.numeric-tower "RELEASE"]

to ~/.lein/profiles.clj. However, I'd like to depend on all all the org.clojure libraries ( https://github.com/clojure ) to make experimentation at the REPL more convenient. Is there a way to do this besides just listing them all explicitly?

Thanks

No, this is not possible because lein needs to know what version of each library you want to use.

Fortunately leinengen when used with the refactor-nrepl middleware (which is included by default in the newest emacs/cider package) can hotload dependencies while your program is running which makes this somewhat more convenient

https://github.com/clojure-emacs/refactor-nrepl/blob/master/README.md#hotload-dependency

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM