Skip to content

protobuf-java 4.30.0 at Maven central not compatible with Java 8 #20580

Closed
@tkeksa

Description

@tkeksa

What version of protobuf and what language are you using?
Version: main/v30.0
Language: Java

What operating system (Linux, Windows, ...) and version?
Windows 10

What runtime / compiler are you using (e.g., python version or gcc version)
Java version: 1.8.0_391, vendor: Oracle Corporation

What did you do?
Build Maven project depending on com.google.protobuf:protobuf-java:4.30.0

What did you expect to see
Successful build

What did you see instead?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project OurService: Compilation failure
[ERROR] /d:/Projects/our-service/src/main/java/cz/company/ucu/backOffice/intens/GrpcDeviceAbstract.java:[75,80] cannot access com.google.protobuf.MessageLite
[ERROR] bad class file: D:\m2_repository\com\google\protobuf\protobuf-java\4.30.0\protobuf-java-4.30.0.jar(com/google/protobuf/MessageLite.class)
[ERROR] class file has wrong version 55.0, should be 52.0

Anything else we should know about your project / environment
All was OK with the 4.29.3 version and no compatibility breaking changes are mentioned in release notes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions