I've created my own compiler plugin, but now I wou...
# apollo-kotlin
j
I've created my own compiler plugin, but now I would like to try the 'modern' normalized cache library and its cache plugin. The docs say to wrap the plugin and call them from a main plugin. Thats fine, I am happy to do that from my own compiler plugin and delegate some to the cache plugin. However, just the act of loading the dependency
Copy code
api(libs.apollo.cache.plugin)
Results in the error: "Apollo: only a single compiler plugin provider is allowed" How am I supposed to wrap the plugin?
I guess I can do something like:
Copy code
tasks.withType<Jar>().configureEach {
    exclude("META-INF/services/com.apollographql.apollo.compiler.ApolloCompilerPluginProvider")
}
m
Apologies, that's indeed a blind spot.
Excluding the resource is the way to go
v5 has a way to use multiple plugins but it's not available in v4. We should probably backport it
j
I’d really appreciate backporting it
m
Yup, that's fair. Making this backward compatible will require a bit of care though. Will dive into this next week. You can follow https://github.com/apollographql/apollo-kotlin/issues/6534 for updates
gratitude thank you 1
This is now possible in 4.3.0. A new release of the cache is also in the pipe
🙌 1
b
The new cache
1.0.0-alpha.3
is available.
🙌 1