CI on `main` is failing on publishing snapshot, because javadoc is
emitting a warning and we fail on warnings. See code comment for more
explanation.

I tried pointing to
`https://docs.oracle.com/en/java/javase/11/docs/api/`, but that gives a
different error:

> warning: The code being documented uses packages in the unnamed
module, but the packages defined in
https://docs.oracle.com/en/java/javase/11/docs/api/ are in named
modules.
This commit is contained in:
Trask Stalnaker 2022-09-21 01:17:25 -07:00 committed by GitHub
parent 527bf612f6
commit 4379ccd95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -202,7 +202,10 @@ tasks {
charSet = "UTF-8" charSet = "UTF-8"
breakIterator(true) breakIterator(true)
links("https://docs.oracle.com/javase/8/docs/api/") // TODO (trask) revisit to see if url is fixed
// currently broken because https://docs.oracle.com/javase/8/docs/api/element-list is missing
// and redirects
// links("https://docs.oracle.com/javase/8/docs/api/")
addStringOption("Xdoclint:none", "-quiet") addStringOption("Xdoclint:none", "-quiet")
// non-standard option to fail on warnings, see https://bugs.openjdk.java.net/browse/JDK-8200363 // non-standard option to fail on warnings, see https://bugs.openjdk.java.net/browse/JDK-8200363