@@ -47,7 +47,6 @@ val releaseBranchName = "release-$versionToRelease"
4747runCommand(" git" , " checkout" , " -b" , releaseBranchName)
4848setCurrentVersion(versionToRelease)
4949setVersionInDocs(versionToRelease, nextSnapshot)
50- setVersionInIntelliJPlugin(versionToRelease)
5150runCommand(" git" , " commit" , " -a" , " -m" , " release $versionToRelease " )
5251runCommand(" git" , " push" , " origin" , releaseBranchName)
5352runCommand(" gh" , " pr" , " create" , " --base" , startBranch, " --fill" )
@@ -213,37 +212,6 @@ fun setVersionInDocs(version: String, nextSnapshot: String) {
213212 }
214213}
215214
216- fun setVersionInIntelliJPlugin (version : String ) {
217- File (" intellij-plugin/src/main/kotlin/com/apollographql/ijplugin/refactoring/migration/v3tov4/ApolloV3ToV4MigrationProcessor.kt" ).let { file ->
218- file.writeText(file.readText().replace(Regex (""" apollo4LatestVersion = "(.+)"""" )) {
219- """ apollo4LatestVersion = "$version """"
220- })
221- }
222- File (" intellij-plugin/src/test/testData/migration/v3-to-v4/updateGradleDependenciesInLibsVersionsToml_after.versions.toml" ).let { file ->
223- file.writeText(file.readText()
224- .replace(Regex (""" "com\.apollographql\.apollo:apollo-runtime:4(.+)"""" )) {
225- """ "com.apollographql.apollo:apollo-runtime:$version """"
226- }
227- .replace(Regex (""" "com\.apollographql\.apollo:4(.+)"""" )) {
228- """ "com.apollographql.apollo:$version """"
229- }
230- .replace(Regex (""" "4(.+)"""" )) {
231- """ "$version """"
232- }
233- )
234- }
235- File (" intellij-plugin/src/test/testData/migration/v3-to-v4/upgradeGradlePluginInBuildGradleKts_after.gradle.kts" ).let { file ->
236- file.writeText(file.readText()
237- .replace(Regex (""" "4(.+)"""" )) {
238- """ "$version """"
239- }
240- .replace(Regex (""" // TODO: Update version to 4(.+)""" )) {
241- """ // TODO: Update version to $version """
242- }
243- )
244- }
245- }
246-
247215fun setVersionInFixtures (nextSnapshot : String ) {
248216 for (file in File (" tests/integration-tests" ).walk()) {
249217 if (file.isDirectory || ! file.name.endsWith(" .json" ) && ! file.name.endsWith(" .kt" )) continue
0 commit comments