Skip to content
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

[🐘gradle-plugin] use Worker API and ServiceLoader #5590

Merged
merged 9 commits into from Feb 2, 2024

Conversation

martinbonnin
Copy link
Contributor

Use the Worker API and classloader isolation to load user plugins. Currently only done for generateApolloSources.

For backward compatibility with packageNameGenerator and operationIdGenerator, classloader isolation is disabled if any of those is set.

I'll remove hooks in a follow up PR as they were experimental, I think it's OK to remove them without going through deprecation cycles?

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 0c0d408
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/65bcb745b264550008ce74da

@martinbonnin martinbonnin marked this pull request as ready for review February 2, 2024 13:37
Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🚀

@martinbonnin martinbonnin merged commit df8e352 into main Feb 2, 2024
9 checks passed
@martinbonnin martinbonnin deleted the serviceloader branch February 2, 2024 14:57
martinbonnin added a commit that referenced this pull request Feb 5, 2024
* add ServiceLoader

* use workers

* update compiler-hooks to use the compiler API

* adapt operationIds test

* restore

* fix

* update apiDump

* hide kotlin-stdlib from the ApolloCompiler API so that the args are not relocatedd

* fix integration tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants