Is possible generate a JavaDoc or GroovyDoc for a build.gradle file?

Hello Developers

Considering for a build.gradle file with many definitions about: tasks and other types of components available to be declared in the file mentioned etc.

is possible in some way generate a javadoc or groovydoc using the standard javadoc syntax?

For example something like:

 * Anything about Javadoc here for documentation purposes.
task cleanTomcat(type: Delete, group: "Tomcat") {

If yes, how is possible export or generate it? I did a research in Google, sadly I couldn’t find an example.

Thank you.