Skip to content

Commit

Permalink
[MINOR] Use 7 chars instead of 10 for source build hash (#6858)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <[email protected]>
  • Loading branch information
siladu authored Apr 2, 2024
1 parent 0307996 commit 258cbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def calculateVersion() {
} else {
// If no version is supplied or it doesn't match the semantic versioning, calculate from git
println("Generating project version as supplied is version not semver: ${project.version}")
def gitDetails = getGitCommitDetails(10) // Adjust length as needed
def gitDetails = getGitCommitDetails(7) // Adjust length as needed
return "${gitDetails.date}-develop-${gitDetails.hash}"
}
}
Expand Down

0 comments on commit 258cbd2

Please sign in to comment.