I've experienced an issue trying to use the 3.19.4 version of protoc and grpc-java to being able to compile with a Custom Generator .
Using:
com.google.protobuf.protoc = 3.19.4
protoc-gen-grpc-java.plugin = 1.45.1 (1.37.0 has an internal dependency on protobuf-java that does not contain com.google.protobuf.GeneratedMessageV3.isStringEmpty)
The issue :
The problem is that the latest protoc generates code that depends on function (com.google.protobuf.GeneratedMessageV3.isStringEmpty) that are available from 3.17.3+.
The current issue:
Since jprotoc using shade plugin to create the jar it brings protoc and protobuf code inside the jar
I've experienced an issue trying to use the 3.19.4 version of protoc and grpc-java to being able to compile with a Custom Generator .
Using: com.google.protobuf.protoc = 3.19.4 protoc-gen-grpc-java.plugin = 1.45.1 (1.37.0 has an internal dependency on protobuf-java that does not contain com.google.protobuf.GeneratedMessageV3.isStringEmpty)
The issue : The problem is that the latest protoc generates code that depends on function (com.google.protobuf.GeneratedMessageV3.isStringEmpty) that are available from 3.17.3+.
The current issue: Since jprotoc using shade plugin to create the jar it brings protoc and protobuf code inside the jar
2. It also can solve compatibility with M1 mac : https://github.com/grpc/grpc-java/issues/8724