Need to show git build sha and platform version in dashboard

Hi,

I want to show git build SHA the uber jar was built on as well as cuba platform version in dashboard to admin user. Can someone please guide me how to proceed.

Thanks

Hi,

the buildInfo gradle tasks lets you do that: https://doc.cuba-platform.com/manual-6.8/build.gradle_buildInfo.html

You can get programmatic access through the BuildInfo bean: https://github.com/cuba-platform/cuba/blob/master/modules/global/src/com/haulmont/cuba/core/global/BuildInfo.java

Bye
Mario

1 Like