Skip to content

Commit

Permalink
Move to 4-character git hash for dev builds
Browse files Browse the repository at this point in the history
Needed in order to fit the whole version into 32 characters
  • Loading branch information
embeddedt committed Aug 3, 2023
1 parent 81ebcc8 commit fac9f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -41,7 +41,7 @@ allprojects {
}
def baseVersion = details.lastTag.substring(0, plusIndex)
def dirtyMarker = grgit.status().clean ? "" : ".dirty"
def commitHashMarker = details.commitDistance > 0 ? ("." + details.gitHash) : ""
def commitHashMarker = details.commitDistance > 0 ? ("." + details.gitHash.substring(0, Math.min(4, details.gitHash.length()))) : ""
def preMarker = (details.commitDistance > 0 || !details.isCleanTag) ? ("-beta." + details.commitDistance) : ""
if(preMarker.length() > 0) {
// bump to next patch release
Expand Down

0 comments on commit fac9f6f

Please sign in to comment.