We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a61ad6 commit ad9ab5cCopy full SHA for ad9ab5c
settings.gradle.kts
@@ -89,6 +89,9 @@ val gitVersion: Provider<String> =
89
90
if (!detached) {
91
"$branch-SNAPSHOT"
92
+ // control chars and slashes aren't allowed in Maven Versions
93
+ .map { c -> if (c.isISOControl() || c == '/' || c == '\\') "_" else c }
94
+ .joinToString("")
95
} else {
96
val descriptions = described.split("-")
97
val head = descriptions.singleOrNull() ?: ""
0 commit comments