0

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?

yan
  • 2,932
  • 1
  • 23
  • 25

1 Answers1

0

It looks like doing this:

groovydoc {
  source project.tasks.findByName('javadoc').source
}

properly adds the java only classes to the groovydoc output.

yan
  • 2,932
  • 1
  • 23
  • 25