gradle: version parsing fix

This commit is contained in:
Jacker 2024-01-24 19:01:11 +02:00
parent 2541d84169
commit ef6e142d1c
No known key found for this signature in database
GPG key ID: 1ACCC1587C75F319

View file

@ -25,7 +25,7 @@ def parseGitVersion() {
if (output.toLowerCase().endsWith('-dirty')) { if (output.toLowerCase().endsWith('-dirty')) {
patchVal = (patchVal as int + 1) as String patchVal = (patchVal as int + 1) as String
postfix = '-DIRTY' postfix = '-DIRTY'
} else if(commit as int > 0) { } else if(commitVal as int > 0) {
patchVal = (patchVal as int + 1) as String patchVal = (patchVal as int + 1) as String
postfix = '-SNAPSHOT' postfix = '-SNAPSHOT'
} else { } else {