Skip to content

Commit 1e4a906

Browse files
authored
[compiler plugins] Add a link to the docs in the deprecation message. (#6649)
1 parent 389c2a0 commit 1e4a906

File tree

1 file changed

+2
-2
lines changed
  • libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler

1 file changed

+2
-2
lines changed

libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/entrypoints.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ internal fun apolloCompilerRegistry(
237237
pluginProviders.forEach {
238238
// we make an exception for our own cache plugin because we want to display a nice error message to users before 4.3
239239
if (it.javaClass.name != "com.apollographql.cache.apollocompilerplugin.ApolloCacheCompilerPluginProvider") {
240-
println("Apollo: using ApolloCompilerPluginProvider is deprecated. Please use ApolloCompilerPlugin directly.")
240+
println("Apollo: using ApolloCompilerPluginProvider is deprecated. You can use ApolloCompilerPlugin directly. See https://go.apollo.dev/ak-compiler-plugins for more details.")
241241
}
242242
hasPlugin = true
243243
val plugin = it.create(environment)
@@ -246,7 +246,7 @@ internal fun apolloCompilerRegistry(
246246
}
247247

248248
if (!hasPlugin && warnIfNotFound) {
249-
println("Apollo: a compiler plugin was added with `Service.plugin()` but no plugin was loaded by the ServiceLoader. Check your META-INF/services/com.apollographql.apollo.compiler.ApolloCompilerPlugin file.")
249+
println("Apollo: a compiler plugin was added with `Service.plugin()` but no plugin was loaded by the ServiceLoader. Check your META-INF/services/com.apollographql.apollo.compiler.ApolloCompilerPlugin file. See https://go.apollo.dev/ak-compiler-plugins for more details.")
250250
}
251251

252252
return registry

0 commit comments

Comments
 (0)