Can you explain me how can i get application version and some otger info from my Spring Boot application ?
I'm using gradle project builder.
I think it will be cool, if I would can get application version from build.gradle file (for example)
version = '0.0.2-SNAPSHOT'
and then I need to increment this number. I need to do this every time I make a new application build. Then I have to get this information in Java code and transfer it to the frontend (AngularJS) so that the QA can know the current version of the application.
Can you explain me how can I do this ? I will be very grateful if you tell me how to do it.
Thanks a lot!
UPDATED:
I thought a little and realized that it might be easier to write a script on Groovy and directly in the "build.gradle" file to take the current version of the application in some way, then increase it by 1 (+1) then somehow remember this version (overwrite it in the "build.gradle" file) and get it in the JAVA code. Maybe it’s too complicated what I said, but that’s all I can say.
Maybe someone has any ideas on this? I will be grateful for the help and useful links as it can be done.
Thanks in advance to everyone.