From 23d0f58b493f15c4b63fd8c5105e7833579c6214 Mon Sep 17 00:00:00 2001 From: Martin Bonnin Date: Mon, 26 Aug 2024 18:51:30 +0200 Subject: [PATCH] Add a note that only a single compiler plugin is allowed --- docs/source/advanced/compiler-plugins.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/source/advanced/compiler-plugins.mdx b/docs/source/advanced/compiler-plugins.mdx index dd996317560..10e74c5beeb 100644 --- a/docs/source/advanced/compiler-plugins.mdx +++ b/docs/source/advanced/compiler-plugins.mdx @@ -83,6 +83,11 @@ mypackage.MyPluginProvider The name of the resource file is important. It must be `com.apollographql.apollo.compiler.ApolloCompilerPluginProvider` and be in the `META-INF/services` folder. This is how `ServiceLoader` looks up plugins at runtime. + + +Only a single plugin is supported at this time. If you need more, you can usually have a single wrapper plugin that calls your different implementations in the required order. + + ## Adding a plugin to the Apollo compiler classpath Use the `Service.plugin()` Gradle method to add the plugin to the Apollo compiler classpath: