Skip to content

Commit a586477

Browse files
Graphql codegen library update (#294)
* Update dgs-codegen to 8.2.1 and remove deprecated option Co-authored-by: richard.e.jose <richard.e.jose@gmail.com> * Bump graphql-codegen-maven-plugin version to 3.6.0 Co-authored-by: richard.e.jose <richard.e.jose@gmail.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent d1c8724 commit a586477

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ Example
532532
- Type: boolean
533533
- Required: false
534534
- Default: false
535+
- Note: ignored with `graphql-dgs-codegen-core` >= 8.2.1 (option removed upstream)
535536

536537
Example
537538

graphqlcodegen-bootstrap-plugin/src/main/java/io/github/deweyjose/bootstrapcodegen/BuilderCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
6262
/**
6363
* Build the GitHub URL for CodeGen.kt based on the version.
6464
*
65-
* @param version The version of graphql-dgs-codegen-core (e.g., "8.1.1").
65+
* @param version The version of graphql-dgs-codegen-core (e.g., "8.2.1").
6666
* @return The GitHub raw URL pointing to the versioned CodeGen.kt file.
6767
*/
6868
private String buildCodeGenConfigUrl(String version) {

graphqlcodegen-bootstrap-plugin/src/test/java/io/github/deweyjose/bootstrapcodegen/BuilderCodegenTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class BuilderCodegenTest {
1111

1212
@Test
1313
void testDownloadCodeGenConfig() throws Exception {
14-
// Use a versioned URL (v8.1.1) instead of master branch
14+
// Use a versioned URL (v8.2.1) instead of master branch
1515
String url =
16-
"https://raw.githubusercontent.com/Netflix/dgs-codegen/v8.1.1/graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/CodeGen.kt";
16+
"https://raw.githubusercontent.com/Netflix/dgs-codegen/v8.2.1/graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/CodeGen.kt";
1717
String codeGenConfig = BuilderCodegen.downloadCodeGenConfig(url);
1818
assertNotNull(codeGenConfig, "CodeGenConfig should not be null");
1919
assertTrue(

graphqlcodegen-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</parent>
1212

1313
<artifactId>graphqlcodegen-maven-plugin</artifactId>
14-
<version>3.5.1</version>
14+
<version>3.6.0</version>
1515
<packaging>maven-plugin</packaging>
1616

1717
<name>GraphQL Code Generator Maven Plugin</name>

graphqlcodegen-maven-plugin/src/main/java/io/github/deweyjose/graphqlcodegen/CodegenExecutor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public void execute(CodegenConfigProvider request, Set<Artifact> artifacts, File
110110
.setSkipEntityQueries(request.isSkipEntityQueries())
111111
.setShortProjectionNames(request.isShortProjectionNames())
112112
.setGenerateDataTypes(request.isGenerateDataTypes())
113-
.setOmitNullInputFields(request.isOmitNullInputFields())
114113
.setKotlinAllFieldsOptional(request.isKotlinAllFieldsOptional())
115114
.setSnakeCaseConstantNames(request.isSnakeCaseConstantNames())
116115
.setGenerateInterfaceSetters(request.isGenerateInterfaceSetters())
@@ -131,6 +130,11 @@ public void execute(CodegenConfigProvider request, Set<Artifact> artifacts, File
131130
.setTrackInputFieldSet(request.isTrackInputFieldSet())
132131
.build();
133132

133+
if (request.isOmitNullInputFields()) {
134+
Logger.warn(
135+
"omitNullInputFields is no longer supported by graphql-dgs-codegen-core >= 8.2.1; ignoring.");
136+
}
137+
134138
Logger.info("Codegen config: \n{}", config);
135139
final CodeGen codeGen = new CodeGen(config);
136140
codeGen.generate();

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<url>https://github.com/deweyjose/graphqlcodegen</url>
1515

1616
<modules>
17-
<module>graphqlcodegen-maven-plugin</module>
1817
<module>graphqlcodegen-bootstrap-plugin</module>
18+
<module>graphqlcodegen-maven-plugin</module>
1919
</modules>
2020

2121
<licenses>
@@ -42,7 +42,7 @@
4242
<properties>
4343
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4444
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
45-
<graphql-dgs-codegen-core.version>8.1.0</graphql-dgs-codegen-core.version>
45+
<graphql-dgs-codegen-core.version>8.2.1</graphql-dgs-codegen-core.version>
4646
<java.version>17</java.version>
4747
<maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
4848
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>

0 commit comments

Comments
 (0)