This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-08
Channels
- # aws (4)
- # beginners (81)
- # boot (65)
- # cljs-dev (10)
- # cljsjs (1)
- # cljsrn (12)
- # clojure (26)
- # clojure-austin (2)
- # clojure-dusseldorf (2)
- # clojure-russia (123)
- # clojure-spec (23)
- # clojure-uk (12)
- # clojurescript (36)
- # cursive (11)
- # datomic (39)
- # events (1)
- # hoplon (25)
- # incanter (4)
- # leiningen (3)
- # off-topic (5)
- # om (31)
- # re-frame (24)
- # reagent (13)
- # ring-swagger (2)
- # rum (10)
- # untangled (3)
- # yada (10)
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
I've also tried (:version project)
, but I get an error saying that project
cannot be found. Any pointers would be greatly appreciated!
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