From 258cbd2a4b034fa6eb16e11658fd467e6838eda9 Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Wed, 3 Apr 2024 06:02:25 +1000 Subject: [PATCH] [MINOR] Use 7 chars instead of 10 for source build hash (#6858) Signed-off-by: Simon Dudley --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 95145af9c2..10d3d3cd0d 100644 --- a/build.gradle +++ b/build.gradle @@ -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}" } }