Conversation
…n-client-core will have.
Rationale
=========
Users might require the artifacts contained in the `graphql-dgs-codegen-client-core` module to be exposed as part of the
API of the module that contains the code generated by this plugin. An example of this will be a GraphQL JAR client
module with the generated codegen code. In such a module the developer will require the
artifacts included in the `graphql-dgs-codegen-client-core` as well to use it.
A developer can manually add the dependency to the `graphql-dgs-codegen-client-core` manually, see example below, but
this will require the prior knowledge the specific version of the plugin. This version might be obscured if the
developer is defining such a version using `latest.release` or `latest.candidate`.
Example of how the dependency can be defined explicitly.
```
dependencies {
api 'com.netflix.graphql.dgs.codegen:graphql-dgs-codegen-client-core:123'
}
```
Feature Description
===================
With this change a developer can define the configuration/scope the
dependency will be added to. Let's say a developer want to add the `graphql-dgs-codegen-client-core` to the `api`
configuration/scope. To do so they will define the following
configuration...
```
codegen {
clientCoreScope = "api"
}
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
Users might require the artifacts contained in the
graphql-dgs-codegen-client-coremodule to be exposed as part of theAPI of the module that contains the code generated by this plugin. An example of this will be a GraphQL JAR client
module with the generated codegen code. In such a module the developer will require the artifacts included in the
graphql-dgs-codegen-client-coreas well.A developer can manually add the dependency to the
graphql-dgs-codegen-client-core, see example below, butthis will require a prior knowledge on the specific version of the plugin. This version might be obscured if the developer is defining such a version using either
latest.releaseorlatest.candidateas version.Example of how the dependency can be defined explicitly.
Feature Description
With this change a developer can define the configuration/scope the dependency will be added to. Let's say, a developer want to add the
graphql-dgs-codegen-client-coreto theapiconfiguration/scope. To do so they will define the followingconfiguration: