Richard Newman <holyg...@gmail.com> writes: > Adjusting the lein script to use my local Clojure install gave me a > great error: > > Caused by: java.lang.NoSuchMethodError: clojure.lang.RestFn.<init>(I)V > > How do people deal with this? How can one simultaneously use two > libraries which have hardwired dependencies on two different Clojure > versions, each of which might be mutually incompatible? > > What's the community protocol around locally installing Clojure 1.2, > and adding that as a dependency for a published library?
It's necessary in these circumstances to use AOT as sparingly as possible. If there's no AOT done, there's no problem with mixing Clojure versions (within reason). So the latest version of Leiningen does zero AOT'ing unless you explicitly ask for it. > What's the right way to get lein itself to use a recent Clojure build, > rather than the version with which it ships? Leiningen allows the project to use a different version of Clojure than Leiningen itself, so (modulo a bug in the repl task for which this doesn't apply) this is a non-issue. -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en