Instead of hard-coding the version into build.gradle, this change derives the version from git tags.
If the HEAD commit has a tag in the format "vM.N", the version number M.N is used directly. Otherwise, a snapshot version is assumed, and the version becomes M.(N+1)-SNAPSHOT.
Instead of hard-coding the version into build.gradle, this change derives the version from git tags.
If the HEAD commit has a tag in the format "
vM.N
", the version numberM.N
is used directly. Otherwise, a snapshot version is assumed, and the version becomesM.(N+1)-SNAPSHOT
.