technomancy/leiningen — Issue #337: Global Setting for Clojure version
Author: stevenproctor
Created: 2011-11-26 03:14:19+00:00
State: open

I was thinking that it might be helpful to have a way to specify a global setting for which version of Clojure to run Leiningen against. I have seen that if you create a project, you can specify the Clojure version in the deps, but it seems like it might be useful to be able to set it at a broader level.

I was thinking that an argument to lein, such as lein clojure-version=x.y.z, or setting an environment variable could be of value. This way regardless of what directory you are in, and if you have created a Clojure project, it would allow users to be able to open the REPL and begin using the version of Clojure that they have as a default preference.

I mention this, because I downloaded the lein file from the main page in the readme markdown, and it is using Clojure 1.2.1, where I was trying to use 1.3.0 for trying to follow some of the examples in Programming Clojure 2nd Edition.