Subchapter 5.2
references/migrating-from-4.mdMarkdown1007 BView on GitHub
Follow this order. Earlier steps unblock later ones (e.g. you can’t compile to find runtime call-site errors until the Gradle plugin coordinates are right).
Confirm the user is on v4.
If the user is on v3 or earlier (group com.apollographql.apollo3 or com.apollographql.apollo at /), they must migrate to v4 first using the ; this skill only covers the v4 → v5 step.
3.x2.xBump versions and plugin coordinates. Use the latest 5.x; run ../scripts/list-apollo-kotlin-versions.sh to discover it.
Build your project. If everything builds, the migration is over.
If you were using experimental (Data Builders, compiler plugins) or deprecated features (ApolloIdlingResource, @nonnull), you have to update them. Refer to the Apollo Kotlin 5.0 migration guide (opens in a new tab) for details.