Skip to content
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

Error during javadoc generation #53

Closed
pierre-yves-monnet opened this issue Feb 6, 2023 · 1 comment
Closed

Error during javadoc generation #53

pierre-yves-monnet opened this issue Feb 6, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@pierre-yves-monnet
Copy link

When the action ran, I got this error during the generation of the Javadoc. It fails because it doesn't recognize lambda and stream function:

[INFO] --- maven-javadoc-plugin:3.4.1:jar (attach-javadocs) @ zeebe-cherry-framework ---
[INFO] No previous run data found, generating javadoc.
Error:  MavenReportException: Error while generating Javadoc: 
Exit code: 1 - /home/runner/work/zeebe-cherry-framework/zeebe-cherry-framework/src/main/java/io/camunda/cherry/admin/RunnerRestController.java:80: error: method references are not supported in -source 7
        .map(RunnerInformation::getRunnerInformation)
                                ^
  (use -source 8 or higher to enable method references)
/home/runner/work/zeebe-cherry-framework/zeebe-cherry-framework/src/main/java/io/camunda/cherry/admin/RunnerRestController.java:81: error: lambda expressions are not supported in -source 7
        .map(w -> this.completeRunnerInformation(w, // this
               ^
  (use -source 8 or higher to enable lambda expressions)

I tried to add

maven-additional-options: -source 17

without success.

What are the correct parameters?
NB: it should be nice to have this parameters by default to publish JDK 1.17 code, at least in the README.

@pierre-yves-monnet pierre-yves-monnet added the help wanted Extra attention is needed label Feb 6, 2023
@jonathanlukas
Copy link
Contributor

This is usually related to the runtime version of your workflow or the configured compiler source version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants