Hello! I am new to using gradle! I opened a project that uses gradle, and there is no config/checkstyle/checkstyle.xml. Thus, when I am trying to build the project, the checkstyle.xml is auto-generated, and I get the error in checkstyleMain task… I have tried to edit the xml file, but every time is overwritten. I use gradle 6.7
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Property 'allowMissingPropertyJavadoc' does not exist, please check the documentation
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:227)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:194)
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:120)
... 118 more
I cannot remember that Gradle generating such a config file for you.
Maybe the build you try to run is generating it, or some 3rd party plugin it applies.
Really hard to guess from the information you provided.
Firstly, thank you for the response. I delete it and every time is generated again. I have searched in all files, and there is no config for that… However, since it is auto-generated, how does the error explained?
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module JavadocMethod - Property 'allowMissingPropertyJavadoc' does not exist, please check the documentation
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:125)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:201)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:477)
... 116 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Property 'allowMissingPropertyJavadoc' does not exist, please check the documentation
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:227)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:194)
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:120)
That you ask at the wrong place, as it has nothing to do with Gradle but is an error coming from Checkstyle.
But it means that you are using a Checkstyle config that is only compatible with <8.25 with a Checkstyle version 8.25+ as in 8.25 this property was deleted as the functionality was moved to a new check in 8.20.