diff --git a/doc/java-generation-from-CRD.md b/doc/java-generation-from-CRD.md index 57eac379632..7eb87062937 100644 --- a/doc/java-generation-from-CRD.md +++ b/doc/java-generation-from-CRD.md @@ -69,7 +69,7 @@ The properties that can be used in the `javaGen` closure are the one defined by The Gradle plugin defines a `crd2java` task (see `gradle tasks --all`), that can be applied or called directly, e.g.: ```shell -gradle crd2Java +gradle crd2java ``` ## Usage diff --git a/java-generator/gradle-plugin/src/main/java/io/fabric8/java/generator/gradle/plugin/JavaGeneratorPluginExtension.java b/java-generator/gradle-plugin/src/main/java/io/fabric8/java/generator/gradle/plugin/JavaGeneratorPluginExtension.java index d09869e29a0..792bf6a903b 100644 --- a/java-generator/gradle-plugin/src/main/java/io/fabric8/java/generator/gradle/plugin/JavaGeneratorPluginExtension.java +++ b/java-generator/gradle-plugin/src/main/java/io/fabric8/java/generator/gradle/plugin/JavaGeneratorPluginExtension.java @@ -131,7 +131,7 @@ public void setExtraAnnotations(final Boolean isExtraAnnotations) { * */ public Boolean getGeneratedAnnotations() { - return javaGeneratorConfig.isUppercaseEnums(); + return javaGeneratorConfig.isGeneratedAnnotations(); } public void setGeneratedAnnotations(final Boolean isGeneratedAnnotations) { @@ -191,7 +191,7 @@ public List getFilesSuffixes() { return javaGeneratorConfig.getFilesSuffixes(); } - public void setPackageOverrides(final List filesSuffixes) { + public void setFilesSuffixes(final List filesSuffixes) { javaGeneratorConfig = new Config(javaGeneratorConfig.isUppercaseEnums(), javaGeneratorConfig.isObjectExtraAnnotations(), javaGeneratorConfig.isGeneratedAnnotations(),