简体   繁体   中英

How to configure groovydoc (for gradle) to generate documentation for both java and groovy source

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?

It looks like doing this:

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

properly adds the java only classes to the groovydoc output.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM