Hi REST Service Developers,
I am trying to generate documentation from the Javadoc comments of a REST Service (for Confluence 9.1.x with Java 17) to be rendered in the Atlassian REST API Browser (RAB).
The problem is already described in Atlassian REST API Browser dosn't show Java Doc Comments. Although the API is properly documented in Javadoc, the RAB shows nothing.
When starting AMPS/Atlassian SDK 9.1.1, I get the following written to the build output:
[INFO] --- confluence:9.1.1:generate-rest-docs (default-generate-rest-docs) @ <SNIP> ---
[INFO] Skipping REST documentation generation as it is not supported on Java 13 or greater
I have found that the issue is reported with RAB-33 and AMPS-1668 explains why this function has been removed:
If Java 13 or greater is used for generating rest documentation,
it will fail because in JDK 13 the support to com.sun.javadoc API was removed.
Unfortunately the current documentation does not provide any information on how we are supposed to handle this:
- Developing a REST service plugin
- Documenting your APIs with the Atlassian REST API Browser
- Using the REST API Browser
Am i missing something? Is there some configuration trick or other tooling that would provide the documentation in the Atlassian REST API Browser? What is Atlassian’s recommendation here?
Cheers,
Robert