The documentation for the groovy doc task (see link) states:
Generates HTML API documentation for Groovy source, and optionally, Java source
But the rest of the documentation does not explain how to optionally generate the documentation for java source. I have a mixed project (both java and groovy) and I would like to generate a single javadoc jar file for both instead of 2 separate jar files. So how do I configure groovydoc to do this?