Skip to content

Commit

Permalink
Add a note that only a single compiler plugin is allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Aug 26, 2024
1 parent e969ade commit 23d0f58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/advanced/compiler-plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</Note>

<Note>

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.
</Note>

## Adding a plugin to the Apollo compiler classpath

Use the `Service.plugin()` Gradle method to add the plugin to the Apollo compiler classpath:
Expand Down

0 comments on commit 23d0f58

Please sign in to comment.