google / guava

Google core libraries for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

alexandrebouchard opened this issue · comments

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

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.

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