We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f823b13 commit cbd4da1Copy full SHA for cbd4da1
build.gradle.kts
@@ -54,7 +54,8 @@ version = run {
54
errorOutput = ByteArrayOutputStream()
55
isIgnoreExitValue = true
56
}
57
- val gitTag = stdout.toString().trim()
+ // get gittag without 'v'
58
+ val gitTag = stdout.toString().trim().removePrefix("v")
59
if (gitTag.isNotEmpty()) gitTag else "1.0.0-SNAPSHOT"
60
} catch (e: Exception) {
61
"1.0.0-SNAPSHOT"
0 commit comments