grpc / grpc.io

Repository for the gRPC website and documentation

Home Page:https://grpc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

protobuf-maven-plugin supports jakarta instead of deprecated javax.annotation

Shulamite opened this issue · comments

protobuf-maven-plugin generated code uses deprecated javax.annotation:
@javax.annotation.Generated

This doesn't compile when we use jakarta modules.

This is unrelated to protobuf-maven-plugin and this repository grpc.io.

The solution here is "follow our documentation and add a provided dependency on org.apache.tomcat:annotations-api:6.0.53." Yes it isn't jakarta, but everything works, at least to our knowledge. grpc/grpc-java#9179 has the discussion about swapping to something else, which needs someone to do investigation work of the Java ecosystem.