From 90450a805fa5533dc96ab347584dd8f8737a997b Mon Sep 17 00:00:00 2001 From: Dewey Jose Date: Fri, 23 Aug 2024 11:41:58 -0400 Subject: [PATCH] fix(schemaPaths): fix the default setup for schema paths. issue #168 --- README.md | 2 +- pom.xml | 2 +- src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35b9897..e5c2c7a 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Or - Type: array - Required: false -- Default: `${project.build.resources}/schema` +- Default: `${project.resource}/src/main/resources/schema` Example diff --git a/pom.xml b/pom.xml index 982fa77..3d323da 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.github.deweyjose graphqlcodegen-maven-plugin maven-plugin - 1.61.3 + 1.61.4 GraphQL Code Generator Maven port of the Netflix DGS GraphQL Codegen gradle build plugin diff --git a/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java b/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java index c0dff18..c3bde28 100644 --- a/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java +++ b/src/main/java/io/github/deweyjose/graphqlcodegen/Codegen.java @@ -32,7 +32,7 @@ public class Codegen extends AbstractMojo { @Parameter(defaultValue = "${project}") private MavenProject project; - @Parameter(property = "schemaPaths") + @Parameter(property = "schemaPaths", defaultValue = "${project.resource}/src/main/resources/schema") private File[] schemaPaths; @Parameter(alias = "schemaJarFilesFromDependencies", property = "schemaJarFilesFromDependencies")