New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle Javadoc documentation missing methods #2553
Comments
I just noticed that it's worse than that. The inherited methods are missing and the methods that do exist, don't have a "full" entry like you see in 3.4. |
It's not a general problem with our Javadoc. So it is not a serious problem as feared. It is only with the javadoc of The problem is that 4a091a4 moved Javadoc from private fields to public methods in |
Can't we fail the build on invalid Javadoc? |
Seems like we could build our Javadoc with Java 8 in some test build: http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html |
Yes. We just need to turn it on before... 🙈 gradle/subprojects/docs/docs.gradle Line 429 in 3c89e4c
|
Awesome, much relieved. |
This activates Javadoc's syntax check. Since it is not available with Java 7, this commit does not yet activate the check on CI, where the Javadoc is built as part of the distribution with Java 7. #2553
This fixes all warnings and errors in the html category except for: - error: unknown attribute: autoTested #2553
The Javadoc fix/improvement for As for activating I fixed all warnings and errors by running locally, including the |
Our current checkstyle rules require this. #2553
Thanks @jjohannes -- could we change If doclint supported HTML5, we could use |
@big-guy Yes we could. Good idea. We just detect it like this:
|
For that, we changed the way of annotating auto tested examples from <pre autoTested=''> to <pre class='autoTested'>. #2553
Done: 907a4e7 |
Java 8 javadoc is now part of Sanity Check (fd3486c) executing the syntax, html and reference checks. |
Awesome, thanks @jjohannes |
The Javadoc for
StandardJavadocDocletOptions
contained asetTagletPath(java.util.List)
in 3.4:https://docs.gradle.org/3.4/javadoc/org/gradle/external/javadoc/StandardJavadocDocletOptions.html#setTagletPath(java.util.List)
But in 3.5, it doesn't:
https://docs.gradle.org/3.5/javadoc/org/gradle/external/javadoc/StandardJavadocDocletOptions.html
This method wasn't removed, but it has never had any Javadoc:
https://github.com/gradle/gradle/blob/master/subprojects/language-java/src/main/java/org/gradle/external/javadoc/StandardJavadocDocletOptions.java#L941
I'm not sure what changed between 3.4 and 3.5. Maybe the minor version of Java 7 we usually build with? /cc @wolfs @donat
Since the Javadoc is the source of truth for our public APIs, this is a serious problem. @eriwen We should fix this before 4.1 final and regenerate the docs for 3.5, 4.0 and 4.0.1.
The text was updated successfully, but these errors were encountered: