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

Add Netflix DGS Codegen plugin support #1348

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

bclozel
Copy link
Member

@bclozel bclozel commented Nov 14, 2023

This commit adds a new dependency to start.spring.io, the "Netflix Data
Graph Service Codegen". This will not add a dependency to generated
project, but rather configure a Maven or a Gradle plugin in the build.

This Codegen plugin parses GraphQL schema files describing remote
GraphQL APIs and generates Java classes to easily create queries and
deserialize GraphQL responses.

Copy link
Contributor

@snicoll snicoll left a comment

Choose a reason for hiding this comment

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

this look complete and quite polished already. I've just added a few nits for your consideration. Thanks!

compatibilityRange: "3.0.0-M1"
groupId: com.netflix.graphql.dgs.codegen
artifactId: graphql-dgs-codegen-gradle
mappings:
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if we need a mapping here considering that the artifact is just a trigger for the build system setup.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right now the only added benefit is that if we upgrade the plugin version and it's not fully published on Maven Central, our verification tests will catch it. I'd be tempted to leave that in for this reason.

@bclozel
Copy link
Member Author

bclozel commented Nov 16, 2023

This PR is still in draft mode, we're discussing some details here and maybe we should link to Spring for GraphQL's docs once spring-projects/spring-graphql#847 is resolved.

@snicoll snicoll added status: waiting-for-triage An issue we've not yet triaged and removed type: enhancement labels Nov 16, 2023
This commit adds a new dependency to start.spring.io, the "Netflix Data
Graph Service Codegen". This will not add a dependency to generated
project, but rather configure a Maven or a Gradle plugin in the build.

This Codegen plugin parses GraphQL schema files describing remote
GraphQL APIs and generates Java classes to easily create queries and
deserialize GraphQL responses.
@bclozel bclozel merged commit 4be7742 into spring-io:main Nov 21, 2023
2 checks passed
@bclozel bclozel added type: enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants