Hi there, this question may not directly relate to this project, but I feel like it's at least tangentially related. I'm building a command-line application and I would like to be able to provide a command such as ./app --version, which should ideally print out the semantic version of the application when it was built. Do you know a way to build a variable such as the rootProject.version into the application itself? (as opposed to only being available in the gradle build scripts)
Hi there, this question may not directly relate to this project, but I feel like it's at least tangentially related. I'm building a command-line application and I would like to be able to provide a command such as
./app --version
, which should ideally print out the semantic version of the application when it was built. Do you know a way to build a variable such as therootProject.version
into the application itself? (as opposed to only being available in the gradle build scripts)If you have any ideas, I'd be happy to hear!