Skip to content

Javadoc generation fails with JDK 11 and later #687

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
dvrajitha opened this issue Jun 7, 2020 · 3 comments
Closed

Javadoc generation fails with JDK 11 and later #687

dvrajitha opened this issue Jun 7, 2020 · 3 comments
Labels
type: task Non user-facing work
Milestone

Comments

@dvrajitha
Copy link

dvrajitha commented Jun 7, 2020

I am getting the following error when building for the 1st time.

> Task :spring-restdocs-core:javadoc
javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
****************\spring-restdocs-master\spring-restdocs-core\src\main\java\org\springframework\restdocs\payload\PayloadDocumentation.java:71: error: attribute not supported in HTML5: summary
         * <table summary="Paths and their values">
                  ^
***********\spring-restdocs-master\spring-restdocs-core\src\main\java\org\springframework\restdocs\payload\PayloadDocumentation.java:135: error: attribute not supported in HTML5: summary
         * <table summary="Paths and their values">
                  ^
3 errors

> Task :spring-restdocs-core:javadoc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spring-restdocs-core:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '**************\spring-restdocs-master\spring-restdocs-core\build\tmp\javadoc\javadoc.options'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 37s
59 actionable tasks: 1 executed, 58 up-to-date
@wilkinsona
Copy link
Member

REST Docs should be built with Java 8. Are you trying to build with a version greater than that?

@wilkinsona wilkinsona added the status: waiting-for-feedback Feedback is required before progress can be made label Jun 7, 2020
@dvrajitha
Copy link
Author

@wilkinsona Yes, I am using Java 14.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback Feedback is required before progress can be made labels Jun 7, 2020
@wilkinsona
Copy link
Member

Thanks. It should work fine if you build with JDK 8. It should be possible to tweak things a little so that it works with JDK 14 as well.

@wilkinsona wilkinsona added type: task Non user-facing work and removed status: feedback-provided Feedback has been provided status: waiting-for-triage Untriaged issue labels Jun 8, 2020
@wilkinsona wilkinsona added this to the 2.0.5.RELEASE milestone Jun 8, 2020
@wilkinsona wilkinsona changed the title Build issue with OpenJDK 14 + Windows 10 Javadoc generation fails with JDK 11 and later Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task Non user-facing work
Projects
None yet
Development

No branches or pull requests

3 participants