hamcrest / JavaHamcrest

Java (and original) version of Hamcrest
http://hamcrest.org/
BSD 3-Clause "New" or "Revised" License
2.11k stars 376 forks source link

Derive version from git #419

Closed tumbarumba closed 4 days ago

tumbarumba commented 1 month ago

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.