Skip to content

Publish Javadoc with the Antora docs - #342

Merged
VanRoy merged 5 commits into
assertj:mainfrom
marcphilipp:antora-javadoc
Nov 28, 2026
Merged

VanRoy merged 5 commits into
assertj:mainfrom
marcphilipp:antora-javadoc

Conversation

@marcphilipp

@marcphilipp marcphilipp commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The Antora build now generates the Javadoc and publishes it at assertj-db/<version>/api on docs.assertj.dev. The guide links to it instead of javadoc.io.

  • Attach the Javadoc to the Antora component via the collector and Spring's root-attachments-extension, and add a "Javadoc" entry to the sidebar.
  • Write Javadoc to target/reports/apidocs, because target/site is the output directory of the Antora site.
  • Link to the AssertJ Core Javadoc on docs.assertj.dev via xref, replacing the removed /assertj-core/current URL.
  • Fix guide links with outdated anchors or class names.
  • Make Antora warnings and errors fail the build.
  • Drop javadoc:javadoc from the CI build, since the Antora build now generates it.

Part of

@marcphilipp marcphilipp changed the title Attach Javadoc to Antora component Publish Javadoc with the Antora docs Nov 26, 2026
Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
The Antora build now generates the Javadoc and publishes it at
`assertj-db/<version>/api`. The guide links to it instead of
javadoc.io, including from the sidebar, and links to the AssertJ
Core Javadoc point to docs.assertj.dev.

Javadoc is now written to `target/reports/apidocs`, because
`target/site` is the output directory of the Antora site.

Also fix guide links with outdated anchors or class names.
The docs site no longer publishes /assertj-core/current. The docs now
reference the Javadoc of the latest AssertJ Core version via xref.

The standalone Antora build has no assertj-core component to resolve
the xref against, so it gets a versioned URL as an attribute instead.
@VanRoy
VanRoy merged commit 4c35e75 into assertj:main Nov 28, 2026
1 check passed
@marcphilipp
marcphilipp deleted the antora-javadoc branch November 29, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants