diff --git a/.editorconfig b/.editorconfig
index edb33ca..9b1735a 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,6 +1,7 @@
root = true
[*]
+max_line_length = 120
indent_style = space
indent_size = 4
end_of_line = lf
diff --git a/README.md b/README.md
index 5b93658..57b9982 100644
--- a/README.md
+++ b/README.md
@@ -581,6 +581,21 @@ Maps the custom annotation and class names to the class packages. Only used when
```
+
+
+## generateIsGetterForPrimitiveBooleanFields
+
+- Type: boolean
+- Required: false
+- Default: false
+
+Example
+
+```xml
+false
+```
+
+
# Usage
Add the following to your pom files build/plugins section.
diff --git a/pom.xml b/pom.xml
index 0b70bc4..dedd21a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.deweyjose
graphqlcodegen-maven-plugin
maven-plugin
- 1.50
+ 1.51.0
GraphQL Code Generator
Maven port of the Netflix DGS GraphQL Codegen gradle build plugin
@@ -34,7 +34,7 @@
- 6.0.2
+ 6.1.1
1.8
3.8.1
3.0.0-M1
diff --git a/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java b/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java
index 5c066ed..49d589d 100644
--- a/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java
+++ b/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java
@@ -154,6 +154,9 @@ public class Codegen extends AbstractMojo {
@Parameter(property = "onlyGenerateChanged", defaultValue = "true")
private boolean onlyGenerateChanged;
+ @Parameter(property = "generateIsGetterForPrimitiveBooleanFields", defaultValue = "false")
+ private boolean generateIsGetterForPrimitiveBooleanFields;
+
private void verifySettings() {
Validations.verifyPackageName(packageName);
Validations.verifySchemaPaths(Arrays.stream(schemaPaths).collect(toList()));
@@ -206,7 +209,50 @@ public void execute() {
return;
}
- final CodeGenConfig config = new CodeGenConfig(emptySet(), schemaPaths, DependencySchemaExtractor.extract(project, schemaJarFilesFromDependencies), outputDir.toPath(), exampleOutputDir.toPath(), writeToFiles, packageName, subPackageNameClient, subPackageNameDatafetchers, subPackageNameTypes, subPackageNameDocs, Language.valueOf(language.toUpperCase()), generateBoxedTypes, generateClientApi, generateClientApiV2, generateInterfaces, generateKotlinNullableClasses, generateKotlinClosureProjections, typeMapping, stream(includeQueries).collect(toSet()), stream(includeMutations).collect(toSet()), stream(includeSubscriptions).collect(toSet()), skipEntityQueries, shortProjectionNames, generateDataTypes, omitNullInputFields, maxProjectionDepth, kotlinAllFieldsOptional, snakeCaseConstantNames, generateInterfaceSetters, generateInterfaceMethodsForInterfaceFields, generateDocs, Paths.get(generatedDocsFolder), includeImports, includeEnumImports.entrySet().stream().collect(toMap(Entry::getKey, entry -> entry.getValue().getProperties())), includeClassImports.entrySet().stream().collect(toMap(Entry::getKey, entry -> entry.getValue().getProperties())), generateCustomAnnotations, javaGenerateAllConstructor, implementSerializable, addGeneratedAnnotation, addDeprecatedAnnotation);
+ final CodeGenConfig config = new CodeGenConfig(
+ emptySet(),
+ schemaPaths,
+ DependencySchemaExtractor.extract(project, schemaJarFilesFromDependencies),
+ outputDir.toPath(),
+ exampleOutputDir.toPath(),
+ writeToFiles,
+ packageName,
+ subPackageNameClient,
+ subPackageNameDatafetchers,
+ subPackageNameTypes,
+ subPackageNameDocs,
+ Language.valueOf(language.toUpperCase()),
+ generateBoxedTypes,
+ generateIsGetterForPrimitiveBooleanFields,
+ generateClientApi,
+ generateClientApiV2,
+ generateInterfaces,
+ generateKotlinNullableClasses,
+ generateKotlinClosureProjections,
+ typeMapping,
+ stream(includeQueries).collect(toSet()),
+ stream(includeMutations).collect(toSet()),
+ stream(includeSubscriptions).collect(toSet()),
+ skipEntityQueries,
+ shortProjectionNames,
+ generateDataTypes,
+ omitNullInputFields,
+ maxProjectionDepth,
+ kotlinAllFieldsOptional,
+ snakeCaseConstantNames,
+ generateInterfaceSetters,
+ generateInterfaceMethodsForInterfaceFields,
+ generateDocs,
+ Paths.get(generatedDocsFolder),
+ includeImports,
+ includeEnumImports.entrySet().stream().collect(toMap(Entry::getKey, entry -> entry.getValue().getProperties())),
+ includeClassImports.entrySet().stream().collect(toMap(Entry::getKey, entry -> entry.getValue().getProperties())),
+ generateCustomAnnotations,
+ javaGenerateAllConstructor,
+ implementSerializable,
+ addGeneratedAnnotation,
+ addDeprecatedAnnotation
+ );
getLog().info(format("Codegen config: %n%s", config));
diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml
index ed66718..f02f15d 100644
--- a/src/main/resources/logback.xml
+++ b/src/main/resources/logback.xml
@@ -7,21 +7,7 @@
- # File appender
-
- baeldung.log
- false
-
- # Pattern of log message for file appender
- %d{yyyy-MM-dd HH:mm:ss} %-5p %m%n
-
-
-
- # Override log level for specified package
-
-
-