diff --git a/buildSrc/src/main/kotlin/SelektExtensions.kt b/buildSrc/src/main/kotlin/SelektExtensions.kt index 2ab82d9c8b..13cc0a105c 100644 --- a/buildSrc/src/main/kotlin/SelektExtensions.kt +++ b/buildSrc/src/main/kotlin/SelektExtensions.kt @@ -30,7 +30,7 @@ fun NamedDomainObjectContainer.release(configure: T.() -> Unit) = getByNa fun Project.gitCommit(): Provider = providers.exec { commandLine("git", "rev-parse", "HEAD") -}.standardOutput.asText +}.standardOutput.asText.map { it.trim() } fun Project.gitCommitShort(): Provider = providers.exec { commandLine("git", "rev-parse", "--short", "HEAD")