diff --git a/build.gradle b/build.gradle index b0863f5a7..d5948737c 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ plugins { group = 'ml.duncte123.skybot' -version '3.61.12' +version "3.61.12_${getGitHash()}" sourceCompatibility = 1.9 @@ -156,3 +156,12 @@ kotlin { coroutines "enable" } } + +def getGitHash() { + def stdout = new ByteArrayOutputStream() + exec { + commandLine 'git', 'rev-parse', '--short', 'HEAD' + standardOutput = stdout + } + return stdout.toString().trim() +} \ No newline at end of file