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

Require JDK version for java spotless check #1128

Closed
wants to merge 1 commit into from

Conversation

jackiehanyang
Copy link
Collaborator

Description

Require JDK version for java spotless check to resolve build failure caused by the following errors:

> Task :spotlessJava FAILED
Step 'eclipse jdt formatter' found problem in 'src/main/java/org/opensearch/timeseries/breaker/BreakerName.java':
You are running Spotless on JVM 11, which limits you to eclipse jdt formatter 4.26.
If you upgrade your JVM to 17+, then you can use eclipse jdt formatter 4.27, which may have fixed this problem.
java.lang.Exception: You are running Spotless on JVM 11, which limits you to eclipse jdt formatter 4.26.
If you upgrade your JVM to 17+, then you can use eclipse jdt formatter 4.27, which may have fixed this problem.
	at com.diffplug.spotless.Jvm$Support$1.apply(Jvm.java:209)
	at com.diffplug.spotless.FormatterStepImpl$Standard.format(FormatterStepImpl.java:82)
	at com.diffplug.spotless.FormatterStep$Strict.format(FormatterStep.java:88)
	at com.diffplug.spotless.Formatter.compute(Formatter.java:246)

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Jackie Han <jkhanjob@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x infra Changes to infrastructure, testing, CI/CD, pipelines, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant