@@ -38,10 +38,8 @@ public class Codegen extends AbstractMojo {
3838 @ Parameter (defaultValue = "${project}" )
3939 private MavenProject project ;
4040
41- @ Parameter (
42- property = "schemaPaths" ,
43- defaultValue = "${project.basedir}/src/main/resources/schema" )
44- private File [] schemaPaths ;
41+ @ Parameter (property = "schemas" , defaultValue = "${project.basedir}/src/main/resources/schema" )
42+ private File [] schemas ;
4543
4644 @ Parameter (alias = "schemaJarFilesFromDependencies" , property = "schemaJarFilesFromDependencies" )
4745 private String [] schemaJarFilesFromDependencies ;
@@ -81,8 +79,8 @@ public class Codegen extends AbstractMojo {
8179 @ Parameter (property = "generateClientApi" , defaultValue = "false" )
8280 private boolean generateClientApi ;
8381
84- @ Parameter (property = "generateClientApiV2 " , defaultValue = "false" )
85- private boolean generateClientApiV2 ;
82+ @ Parameter (property = "generateClientApiv2 " , defaultValue = "false" )
83+ private boolean generateClientApiv2 ;
8684
8785 @ Parameter (property = "generateDataTypes" , defaultValue = "true" )
8886 private boolean generateDataTypes ;
@@ -100,9 +98,9 @@ public class Codegen extends AbstractMojo {
10098 private File outputDir ;
10199
102100 @ Parameter (
103- property = "exampleOutputDir " ,
101+ property = "examplesOutputDir " ,
104102 defaultValue = "${project.build.directory}/generated-examples" )
105- private File exampleOutputDir ;
103+ private File examplesOutputDir ;
106104
107105 @ Parameter (
108106 property = "schemaManifestOutputDir" ,
@@ -194,7 +192,7 @@ public class Codegen extends AbstractMojo {
194192 */
195193 private Set <File > expandSchemaPaths () {
196194 if (onlyGenerateChanged ) {
197- Set <File > configuredSchemaPaths = stream (schemaPaths ).collect (toSet ());
195+ Set <File > configuredSchemaPaths = stream (schemas ).collect (toSet ());
198196 Set <File > expandedSchemaPaths = new HashSet <>();
199197
200198 // expand any directories into graphql file paths
@@ -209,7 +207,7 @@ private Set<File> expandSchemaPaths() {
209207 getLog ().info (String .format ("expanded schema paths: %s" , expandedSchemaPaths ));
210208 return expandedSchemaPaths ;
211209 } else {
212- return stream (schemaPaths ).collect (toSet ());
210+ return stream (schemas ).collect (toSet ());
213211 }
214212 }
215213
@@ -264,7 +262,7 @@ public void execute() {
264262 fullSchemaPaths ,
265263 DependencySchemaExtractor .extract (project , schemaJarFilesFromDependencies ),
266264 outputDir .toPath (),
267- exampleOutputDir .toPath (),
265+ examplesOutputDir .toPath (),
268266 writeToFiles ,
269267 packageName ,
270268 subPackageNameClient ,
@@ -275,7 +273,7 @@ public void execute() {
275273 generateBoxedTypes ,
276274 generateIsGetterForPrimitiveBooleanFields ,
277275 generateClientApi ,
278- generateClientApiV2 ,
276+ generateClientApiv2 ,
279277 generateInterfaces ,
280278 generateKotlinNullableClasses ,
281279 generateKotlinClosureProjections ,
@@ -362,7 +360,7 @@ public void verifySchemaFiles(Set<File> fullSchemaPaths) {
362360 getLog ()
363361 .error (
364362 "No schema files found and no schemaJarFilesFromDependencies specified. "
365- + "Refer to documentation for schemaPaths and schemaJarFilesFromDependencies. " );
363+ + "Refer to documentation for schemas and schemaJarFilesFromDependencies. " );
366364 throw new IllegalArgumentException ("No schema files found. Please check your configuration." );
367365 }
368366 }
0 commit comments