How to add version number during build?

Hi,

Just wondering how I can add a version/release number to a build? In the about menu in an app there’s a reference to a release number and a release timestamp. Though, I could not find how to change this at all. Preferably I would like to change it during the gradle build and add a reference to a git hash and the CD build job to it.

Any ideas/solutions?

Thanks!

Hi there,

it is a featuer added in version CUBA 6.6. You can read about in the release notes: http://files.cuba-platform.com/cuba/release-notes/6.6/#_build_info

The gradle task “buildInfo” is your friend: https://doc.cuba-platform.com/manual-6.6/build.gradle_buildInfo.html

bye
Mario

Many thanks Mario!

I missed that in the documentation while I was looking in the deployment section. Thanks for pointing me out, now it works fine. Great to have this available!