New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about new ApolloCompilerPlugin API #5851
Comments
Hey! Thanks for posting this. GitHub definitely has better SEO so that's a good place 👍
Yes, it'll ultimately allow us to isolate the compiler into its own classloader so we can remove the current relocation we're doing and more generally separate the concerns.
Yup, correct. I'll make a migration guide for this.
You might be able to add
I think codegenerating them using something like KSP has |
Re: logging, looking at KSP source code, looks like it is all |
Yeah I'm wary of the |
The issue is we need to make Gradle aware of any parameter for up-to-date checks, etc... If you have several parameters, it means either serializing them all to a single Gradle input (probably what KSP is doing) or something else (maybe pass a Map or so). This week is packed already but I'll look into it early next week. |
First drop for parameters and logger here |
Question
Looking at the new
ApolloCompilerPlugin
stuff in 4.0 beta 6. Coming from 4.0 beta 4 where we have anoperationIdGenerator
and we're also setting acompilerKotlinHooks
. I converted the compilerKotlinHooks to aApolloCompilerPlugin
but then I get this errorApollo: using ApolloCompilerPlugin and operationOutputGenerator/operationIdGenerator/packageNameGenerator at the same time is not supported. See https://go.apollo.dev/ak-compiler-plugins for more details.
Sounds like the new recommended approach is to have a single plugin that does all of this stuff? If that's the case,
OperationDescriptor.source
the equivalent ofOperationIdGenerator.apply
'soperationDocument
param?org.gradle.api.logging.Logger
from the compiler plugin?gradle.startParameter.isOffline
from the plugin?For context, this is our old
operationIdGenerator
:(Let me know if you'd prefer to discuss this on Slack, I just figured there's not much discussion on this stuff yet so it might be more helpful to be more publicly searchable)
The text was updated successfully, but these errors were encountered: