Skip to content

Commit b40b4d8

Browse files
authored
make the release script work with both package names (#6032)
1 parent c6a9a82 commit b40b4d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/release.main.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ fun setVersionInDocs(version: String, nextSnapshot: String) {
187187

188188
val content = file.readText()
189189
// Plugin
190-
.replace(Regex("""id\("com\.apollographql\.apollo3"\) version "(.+)""")) {
190+
.replace(Regex("""id\("(com\.apollographql\.apollo.?)"\) version "(.+)""")) {
191191
"""
192-
id("com.apollographql.apollo") version "$version"
192+
id("${it.groupValues[1]}") version "$version"
193193
""".trimIndent()
194194
}
195195
// Dependencies
196-
.replace(Regex(""""com\.apollographql\.apollo3:(.+):.+"""")) {
197-
""""com.apollographql.apollo:${it.groupValues[1]}:$version""""
196+
.replace(Regex(""""(com\.apollographql\.apollo.?):(.+):.+"""")) {
197+
""""${it.groupValues[1]}:${it.groupValues[2]}:$version""""
198198
}
199199
// Tutorial
200200
.replace(Regex("This tutorial uses `(.+)`")) {

0 commit comments

Comments
 (0)