Fork me on GitHub
#leiningen
<
2017-01-08
>
jvtrigueros16:01:05

In my project.clj, I'm trying to dynamically get my already specified project version. In [SAMPLE.MD](https://github.com/technomancy/leiningen/blob/stable/sample.project.clj), it says I can use :project/version to obtain the version, so I'm doing this:

clojure
...
:ring {:handler ... :uberwar-name ~(str "name" :project/version ".war")}
...
But this doesn't expand :project/version instead it prints it literally: name:project/version.war

jvtrigueros16:01:18

I've also tried (:version project), but I get an error saying that project cannot be found. Any pointers would be greatly appreciated!

sophiago23:01:22

i'm feeling a bit stupid having to ask this, but i'm in a situation where i'm maintaining an alternate version of a project that doesn't use a certain dependency and instead of creating a separate project file i just added another file with a different ns to the current one figuring i could just require it from the repl and it would override all the common functions. requiring it is working, but the functions don't seem to be available, including those that aren't duplicates