From 535bfab8db0ce02a70f6ecc5ccb28a53d871e871 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Fri, 29 Sep 2023 07:40:36 -0600 Subject: [PATCH] Fix version updates in ReleaseHelperPlugin --- .../kotlin/com/wbrawner/releasehelper/ReleaseHelperPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/com/wbrawner/releasehelper/ReleaseHelperPlugin.kt b/buildSrc/src/main/kotlin/com/wbrawner/releasehelper/ReleaseHelperPlugin.kt index df2c589..1bf13ff 100644 --- a/buildSrc/src/main/kotlin/com/wbrawner/releasehelper/ReleaseHelperPlugin.kt +++ b/buildSrc/src/main/kotlin/com/wbrawner/releasehelper/ReleaseHelperPlugin.kt @@ -102,7 +102,7 @@ private fun String.incrementVersion(part: VersionPart) = split(".") .joinToString(".") private fun Project.updateVersionName(oldVersionName: String, newVersionName: String) { - File(projectDir, "app/build.gradle.kts").apply { + File(projectDir, "build.gradle.kts").apply { writeText( readText().replace("versionName = \"$oldVersionName\"", "versionName = \"$newVersionName\"") )