Java Spring Boot: Versioning
Goal
A versioning strategy which is reflected in the published artifacts.
Implementation
See Align API Security versioning and release proce... (&9237)
Version using a MAJOR.MINOR.PATCH format. The MAJOR version is defined in project.properties. The script build/buildtag.sh calculates the version number to be used and places it in the BUILDTAG environment variable.
The environment variable is read in by the build.gradle.kts files and use as the version.
Only main and prod-xxx branches will have a version number. Other branches will use a default of 0.0.0.
Edited by Michael Eddington