Unable to get overview.html in javadoc using gradle

Using the last gradle, I am trying to get a standard .html overview for display in javadocs for my project. I have not tried several different configuration methods. Here's the last one:

javadoc.ext["overview"] = "${projectDir}/src/main/java/overview.html"

No errors were reported, but review ads do not appear on the javadocs index page. I can get this to work by calling javadoc from the command line or IDE.

Thanks for the help. (I have checked gradle docs .)

+4
source share
1 answer

Not sure how you came to this syntax. Starting with the DSL link for the Javadoc task, you should end up with the following address:

 javadoc { options.overview = "overview.html" // relative to source root } 

According to the docs for the Javadoc tool, this seems to be the default, but only appears if you have at least two packages.

+9
source

Source: https://habr.com/ru/post/1448037/


All Articles