Skip to content

Improve how the build deals with javadoc invalid references #30428

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

Closed

Conversation

simonbasle
Copy link
Contributor

This commit improves how the build deals with javadoc invalid references
in two ways.

Link/see references that are temporarily invalid during javadoc
generation of individual modules are better masked by using the option
Xdoclint:syntax instead of Xdoclint:none (warnings were still
visible in some cases, e.g. when individually building the javadoc for
a specific module).

Global javadoc-building task api now combines syntax and reference
Xdoclint groups, allowing to raise truly invalid references even when
all the modules have been aggregated.

This commit also fixes the 20+ errors which appeared following the later
change in doclet configuration.

This commit improves how the build deals with javadoc invalid references
in two ways.

Link/see references that are temporarily invalid during javadoc
generation of individual modules are better masked by using the option
`Xdoclint:syntax` instead of `Xdoclint:none` (warnings were still
visible in some cases, e.g. when individually building the javadoc for
a specific module).

Global javadoc-building task `api` now combines `syntax` and `reference`
`Xdoclint` groups, allowing to raise truly invalid references even when
all the modules have been aggregated.

This commit also fixes the 20+ errors which appeared following the later
change in doclet configuration.
@simonbasle simonbasle self-assigned this May 5, 2023
@simonbasle simonbasle requested review from bclozel and sbrannen May 5, 2023 13:09
@simonbasle simonbasle added type: documentation A documentation task type: task A general task labels May 5, 2023
@simonbasle simonbasle added this to the 6.0.9 milestone May 5, 2023
@simonbasle simonbasle marked this pull request as ready for review May 5, 2023 13:09
@simonbasle simonbasle modified the milestones: 6.0.9, 6.0.x May 5, 2023
This commit removes the JBoss Application Server external javadoc link,
which covers too many packages and can thus problematically take
precedence for said packages and lead to dead links.

It is replaced by Hibernate javadocs for `org.hibernate.*` packages,
JakartaEE and jsr305 for annotations. We lose a limited number of links
around org.xnio classes and Hibernate-and-JTA-related classes, as a
trade-off.

See spring-projectsgh-30455
@simonbasle simonbasle modified the milestones: 6.0.x, 6.0.10 May 16, 2023
simonbasle added a commit that referenced this pull request May 16, 2023
This commit removes the JBoss Application Server external javadoc link,
which covers too many packages and can thus problematically take
precedence for said packages and lead to dead links.

It is replaced by Hibernate javadocs for `org.hibernate.*` packages,
JakartaEE and jsr305 for annotations. We lose a limited number of links
around org.xnio classes and Hibernate-and-JTA-related classes, as a
trade-off.

See gh-30455
See gh-30428
@simonbasle simonbasle deleted the fixJavadocOutdatedLinks branch May 16, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant