3 ms·
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 internall
by emidln 11y ago
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/8f5993a37ff300e36897debe9c5bf558 https://gist.github.com/emidln/8f5993a37ff300e36897debe9c5bf...
- jwr 11y agoDo those lines also name your jars as "project-2.7.11-g03d04c5a.jar" or similar?
- emidln 11y agoNo, 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")