From ef6e142d1cc49bf5094380fbaba0cc8d2e7a5fab Mon Sep 17 00:00:00 2001 From: Jacker Date: Wed, 24 Jan 2024 19:01:11 +0200 Subject: [PATCH] gradle: version parsing fix --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index cb3eab9..73712ea 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ def parseGitVersion() { if (output.toLowerCase().endsWith('-dirty')) { patchVal = (patchVal as int + 1) as String postfix = '-DIRTY' - } else if(commit as int > 0) { + } else if(commitVal as int > 0) { patchVal = (patchVal as int + 1) as String postfix = '-SNAPSHOT' } else {