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

Certain versions of Guava on Maven central no longer working on Java 11 #7132

Closed
1 task done
alexandrebouchard opened this issue Mar 29, 2024 · 2 comments
Closed
1 task done
Labels
type=defect Bug, not working as expected

Comments

@alexandrebouchard
Copy link

alexandrebouchard commented Mar 29, 2024

Description

We have a legacy system pinned at Java 11. Our CI started failing recently due to a guava jar artifact that used to be compatible with Java 11 but is not longer. The jar in question is guava-30.1-jre.jar. We have not changed our build script dependencies, so the jar on maven central must have been re-generated recently. The new one uses class version 61.0, making it incompatible with Java 11. Thank you in advance for your help!

Example

git clone https://github.com/UBC-Stat-ML/blangSDK.git 
cd blangSDK
./gradlew build

Expected Behavior

Build successful

Actual Behavior

> com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/OperationCanceledException 
has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Packages

No response

Platforms

Java 11

Checklist

@alexandrebouchard alexandrebouchard added the type=defect Bug, not working as expected label Mar 29, 2024
@Stephan202
Copy link
Contributor

Hey @alexandrebouchard! If I read that error message correctly, it's about org/eclipse/core/runtime/OperationCanceledException requiring Java 17. That's not a Guava type.

@alexandrebouchard
Copy link
Author

Oh my apologies, I was mistaken by the beginning of the string. Thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type=defect Bug, not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants