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\"") )