I am trying to build with JDK 11 this project
git clone --depth 1 --branch 16.0.2 https://github.com/JetBrains/java-annotations.git
with "gradle build" command, and got the following error:
> Task :common:compileJava FAILED
error: Source option 5 is no longer supported. Use 6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:compileJava'.
> Compilation failed; see the compiler error output for details.
please tell me how to fix that?