Get platform version in code

I know I can use com.vaadin.flow.server.Version.getFullVersion(); to get the flow version being used, but how do I get the platform version. This is sometimes handy. So, for my Vaadin 13.0.9 code, com.vaadin.flow.server.Version.getFullVersion(); gets me flow version 1.4.6. This is, of course, correct and helpful for finding some problems, but it would also be nice to get the platform version. Yes, it is in my pom.xml, but sometimes it is nice to be able to see it in a log without having to pull up the code, in case we forgot since the last time we touched that section of the code.

Anthony Baldarelli:
I know I can use com.vaadin.flow.server.Version.getFullVersion(); to get the flow version being used, but how do I get the platform version. This is sometimes handy. So, for my Vaadin 13.0.9 code, com.vaadin.flow.server.Version.getFullVersion(); gets me flow version 1.4.6. This is, of course, correct and helpful for finding some problems, but it would also be nice to get the platform version. Yes, it is in my pom.xml, but sometimes it is nice to be able to see it in a log without having to pull up the code, in case we forgot since the last time we touched that section of the code.

I too agree with this.

Here’s one option you can use: https://stackoverflow.com/questions/53667295/get-vaadin-version-in-flow/55371552#55371552

Olli Tietäväinen:
Here’s one option you can use: https://stackoverflow.com/questions/53667295/get-vaadin-version-in-flow/55371552#55371552

Thanks Olli. Yes, it should do the trick but it is a convoluted way of doing it :slight_smile:

I understand that there is no content specific to the platform release and thus, on way to put that info somewhere.

Olli Tietäväinen:
Here’s one option you can use: https://stackoverflow.com/questions/53667295/get-vaadin-version-in-flow/55371552#55371552

Thanks. Ironically enough, I saw that solution as well. Was just hoping there was a better way, already hidden in the Vaadin API someplace I was missing. But re-reading the idea, it looks pretty easy.