-
Notifications
You must be signed in to change notification settings - Fork 23
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
UnsupportedClassVersionError: com/google/googlejavaformat/java/Main has been compiled by a more recent version of the Java Runtime #3
Comments
Hey, the latest version of Google Java Format requires JDK 11 at least, and by default I published a new version of my action a few days ago ( However I strongly recommend you to switch to a more recent JDK if possible. You can do so simply by adding a step before executing this action, as indicated in the README: jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1 # Add this step (if possible)
with:
java-version: "11"
- uses: axel-op/googlejavaformat-action@v3.0.0 # Change version tag here
with:
args: "--skip-sorting-imports --replace" |
👍 yep that solved it - builds now passing |
Got the same issue, but if I added Java version, the build task will be ignored completely in my case. https://github.com/hantsy/cargotracker/pull/11/checks?check_run_id=1782645512 |
I found the reason when I set up Java 11, I can not set version arg for this action, else it will be ignored. |
Hi, I don't understand what you mean. The |
Hey,
getting the following Runtime-Error for all my builds
using
ubuntu-latest
without any manual changes 🤔The text was updated successfully, but these errors were encountered: