I would like to automatically inject a git-based (e.g., tag + commit) version identifier (for example, under
resources/version.edn) when building a jar, so I can use it e.g., when logging.
I know there are some lein plugins (e.g,
lein-v) that can do something like this, but I haven’t found any tools.deps equivalents. I guess it’d be easy enough to hack something together that does this, but if there’s an existing solution, I’d be happy to adopt it.