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

[IJ plugin] v3 -> v4 migration: Gradle conf #5114

Merged
merged 6 commits into from
Jul 24, 2023
Merged

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Jul 21, 2023

  • enclose service configuration in a service("service") {} block
  • mapScalar instead of customScalarsMapping.set / .put
  • multi module: apollo/service/dependsOn instead of dependencies/apolloMetadata
  • and a few renames

Also add the Migrate actions to Tools / Apollo (in addition to Refactor / Apollo) for increased visibility

@BoD BoD requested a review from martinbonnin as a code owner July 21, 2023 16:35
@netlify
Copy link

netlify bot commented Jul 21, 2023

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 4fe5697
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/64babcb98c0a9b0008f8f64d


service("service2") {
packageName.set("com.example.service2")
dependsOn(project(":schema"))
Copy link
Contributor

Choose a reason for hiding this comment

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

The multi-module + multi-service is a bit weird because before you could have matadata that was used by only one service while now I think it's going to fail if it doesn't find a schema for the given service in the :schema module. There's no way to guess just by looking at the Gradle config of a single project though so this is fine for me 👍

@BoD BoD merged commit aa154f6 into main Jul 24, 2023
8 checks passed
@BoD BoD deleted the ij-plugin-v4-migration-gradle branch July 24, 2023 09:10
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.

2 participants