You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/apollo-gradle-plugin/src/main/kotlin/com/apollographql/apollo/gradle/internal/DefaultApolloExtension.kt
privateval adhocComponentWithVariants:AdhocComponentWithVariants by lazy {
@@ -150,8 +148,6 @@ abstract class DefaultApolloExtension(
150
148
"apollo-kotlin requires Gradle version $MIN_GRADLE_VERSION or greater"
151
149
}
152
150
153
-
checkVersionsTask = registerCheckVersionsTask()
154
-
155
151
/**
156
152
* An aggregate task to easily generate all models
157
153
*/
@@ -270,72 +266,6 @@ abstract class DefaultApolloExtension(
270
266
}
271
267
}
272
268
273
-
/**
274
-
* Registers the `checkVersions` task.
275
-
*
276
-
* `checkVersions` ensures that all declared versions in a build are the same (plugins, direct dependencies but not transitive dependencies).
277
-
* The main goal is to make sure that the generated code matches the `apollo-api` version as we historically do not provide compatibility guarantees.
278
-
*
279
-
* This code has some shortcomings:
280
-
* 1. it is too restrictive. Most of the time, codegen x is compatible with runtime y as long as y >= x and the same major version.
281
-
* 2. it doesn't work with transitive dependencies. This is fine because Gradle by default uses the greatest version and because of 1. it works most of the time.
282
-
* 3. it's a global check and there _could_ be scenarios where this is not desirable.
283
-
*
284
-
* All of this makes this check ill-defined, but it hasn't been too much of an issue so far, and it's a net gain to catch the plugin/runtime discrepancies that have happened in the past.
285
-
*
286
-
* If you're reading this because there has been an issue, there are several mitigations:
0 commit comments