Skip to content

Commit cbd4da1

Browse files
committed
fixing version extraction
1 parent f823b13 commit cbd4da1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ version = run {
5454
errorOutput = ByteArrayOutputStream()
5555
isIgnoreExitValue = true
5656
}
57-
val gitTag = stdout.toString().trim()
57+
// get gittag without 'v'
58+
val gitTag = stdout.toString().trim().removePrefix("v")
5859
if (gitTag.isNotEmpty()) gitTag else "1.0.0-SNAPSHOT"
5960
} catch (e: Exception) {
6061
"1.0.0-SNAPSHOT"

0 commit comments

Comments
 (0)