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

Embed GraphQL metadata in the jar/klib #5960

Open
martinbonnin opened this issue Jun 12, 2024 · 0 comments
Open

Embed GraphQL metadata in the jar/klib #5960

martinbonnin opened this issue Jun 12, 2024 · 0 comments

Comments

@martinbonnin
Copy link
Contributor

Use case

As of today, we use a separate file to store GraphQL metadata used by the apollo compiler. This means in multi-module scenarios, one typically has to do something like so:

dependencies {
  implementation(project(":schema"))
}

apollo {
  service("service") {
    dependsOn(project(":schema"))
  }
}

While working, this setup is a bit cumbersome and error prone. It's possible to forget one of the two dependencies.

Instead, we could embed the required GraphQL information in the .jar/.klib file so that the apollo compiler doesn't have to pull an additional artifact.

Describe the solution you'd like

No response

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

No branches or pull requests

1 participant