I want to bake something into my leiningen/uberjar build so that the program prints a particular string that was generated at compile time.
In a C++ Makefile I would use g++ [...] -D BUILD_VERSION=$SOMETHING
, with $SOMETHING
being available through my gitlab CI environment, and then use the BUILD_VERSION
define in my code. Is there a similar way to tell leiningen about this on the command line?
There are several answers here that tell me to read information from the POM file, or the project file. But this information is predefined, but I want to define this in my build script (e.g. use a particular git describe
command).