Access defproject version number within application code #156

Closed
jkndrkn opened this Issue Jan 12, 2011 · 4 comments

3 participants

@jkndrkn

Being able to access the version number specified via defproject within your application would be useful. Discussion with technomancy revealed that plugins running with lein can do this, but application source code can't.

@bmabey

I've needed to do this in tha past as well and ended up using something like this:

https://github.com/fogus/marginalia/blob/master/src/marginalia/core.clj#L60-85

@technomancy
Owner

Set $PROJECT.version as system property. Closed by 48109fa.

@jkndrkn

Awesome. Looking forward to 1.5 ^_^

@technomancy
Owner

Shouldn't be long now.

@pjstadig pjstadig pushed a commit to pjstadig/leiningen that referenced this issue May 12, 2011
@technomancy Set $PROJECT.version as system property. Fixes #156. 48109fa
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment