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: CUBA Platform and Studio Release Notes

The gradle task “buildInfo” is your friend: buildInfo - CUBA Platform. Developer’s Manual

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!