@@ -47,7 +47,7 @@ val releaseBranchName = "release-$versionToRelease"
47
47
runCommand(" git" , " checkout" , " -b" , releaseBranchName)
48
48
setCurrentVersion(versionToRelease)
49
49
setVersionInDocs(versionToRelease, nextSnapshot)
50
- setVersionInIntelliJPlugin(versionToRelease, nextSnapshot )
50
+ setVersionInIntelliJPlugin(versionToRelease)
51
51
runCommand(" git" , " commit" , " -a" , " -m" , " release $versionToRelease " )
52
52
runCommand(" git" , " push" , " origin" , releaseBranchName)
53
53
runCommand(" gh" , " pr" , " create" , " --base" , startBranch, " --fill" )
@@ -208,18 +208,18 @@ fun setVersionInDocs(version: String, nextSnapshot: String) {
208
208
}
209
209
}
210
210
211
- fun setVersionInIntelliJPlugin (version : String , nextSnapshot : String ) {
211
+ fun setVersionInIntelliJPlugin (version : String ) {
212
212
File (" intellij-plugin/src/main/kotlin/com/apollographql/ijplugin/refactoring/migration/v3tov4/ApolloV3ToV4MigrationProcessor.kt" ).let { file ->
213
213
file.writeText(file.readText().replace(Regex (""" apollo4LatestVersion = "(.+)"""" )) {
214
214
""" apollo4LatestVersion = "$version """"
215
215
})
216
216
}
217
217
File (" intellij-plugin/src/test/testData/migration/v3-to-v4/updateGradleDependenciesInLibsVersionsToml_after.versions.toml" ).let { file ->
218
218
file.writeText(file.readText()
219
- .replace(Regex (""" "com\.apollographql\.apollo3 :apollo-runtime:4(.+)"""" )) {
219
+ .replace(Regex (""" "com\.apollographql\.apollo :apollo-runtime:4(.+)"""" )) {
220
220
""" "com.apollographql.apollo:apollo-runtime:$version """"
221
221
}
222
- .replace(Regex (""" "com\.apollographql\.apollo3 :4(.+)"""" )) {
222
+ .replace(Regex (""" "com\.apollographql\.apollo :4(.+)"""" )) {
223
223
""" "com.apollographql.apollo:$version """"
224
224
}
225
225
.replace(Regex (""" "4(.+)"""" )) {
@@ -237,11 +237,6 @@ fun setVersionInIntelliJPlugin(version: String, nextSnapshot: String) {
237
237
}
238
238
)
239
239
}
240
- File (" intellij-plugin/src/test/kotlin/com/apollographql/ijplugin/ApolloTestCase.kt" ).let { file ->
241
- file.writeText(file.readText().replace(Regex (""" snapshotVersion = "(.+)"""" )) {
242
- """ snapshotVersion = "$nextSnapshot """"
243
- })
244
- }
245
240
}
246
241
247
242
fun mergeAndWait (branchName : String ) {
0 commit comments