Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Reading project version number at runtime #178

kototama opened this Issue Feb 24, 2011 · 3 comments


2 participants


I need to read the project version number at runtime, once the application has been packaged as a "uber" JAR. This could work well since the project.clj is included in the JAR but since multiple project are used to build the JAR, only one project.clj is kept in the JAR. In the end it's not the one of the main application but one of a library and I can't retrieve the application version number.

It would be great to either somehow keep all project.clj in the JAR or to provide a mechanism so that the project version number of the project being packaged as a JAR could be accessed at runtime from the Clojure code.


technomancy commented Mar 1, 2011

I think it would be good if the uberjar task were rearranged so it added the project's files last. I will try to get this into version 1.5.0.


technomancy commented Mar 3, 2011

Place the project jar last in the uberjar. Closed by 6e7aa26.


technomancy commented Mar 3, 2011

Fixed for 1.5.0; you can get the project number in older versions by reading META-INF/maven/group-id/artifact-id/pom.properties

@pjstadig pjstadig pushed a commit to pjstadig/leiningen that referenced this issue May 12, 2011

@technomancy technomancy Place the project jar last in the uberjar. Fixes #178. 6e7aa26

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment