-
Notifications
You must be signed in to change notification settings - Fork 914
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
Conversation
96f529b
to
8162ce8
Compare
There was a problem hiding this 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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
...ava/io/spring/start/site/extension/dependency/dgs/DgsCodegenHelpDocumentCustomizerTests.java
Outdated
Show resolved
Hide resolved
...pring/start/site/extension/dependency/dgs/DgsCodegenProjectGenerationConfigurationTests.java
Outdated
Show resolved
Hide resolved
...pring/start/site/extension/dependency/dgs/DgsCodegenProjectGenerationConfigurationTests.java
Outdated
Show resolved
Hide resolved
.../main/java/io/spring/start/site/extension/dependency/dgs/DgsCodegenMavenBuildCustomizer.java
Outdated
Show resolved
Hide resolved
6c42215
to
ad96ce0
Compare
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. |
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.
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.