News for hackers. Stuff that matters.
Re:Clojure, the Good Parts by emidln on Tuesday April 19, 2016 @05:48PM (#11530745)
Difficult? I have a few lines in a namespace that grabs `git describe --tags` and a few other things and places them in a json file. This is served up internally by all http-speaking applications as `GET /_internal/build-info`.

https://gist.github.com/emidln/8f5993a37ff300e36897debe9c5bf...

Re:Clojure, the Good Parts by jwr on Wednesday April 20, 2016 @02:23AM (#11532616)
Do those lines also name your jars as "project-2.7.11-g03d04c5a.jar" or similar?
Re:Clojure, the Good Parts by emidln on Thursday April 21, 2016 @12:12PM (#11543232)
No, but only because load-file doesn't play well with all of my dependencies. However, that still doesn't seem like job for a plugin, given that this works out of the box with leniningen:

      :uberjar-name ~(str "foobar-%s-"
                      (-> (clojure.java.shell/sh "git" "rev-parse" "--short" "HEAD") :out .trim)
                      ".uber.jar")