protobuf-maven-plugin supports jakarta instead of deprecated javax.annotation
Shulamite opened this issue · comments
Shulamite commented
protobuf-maven-plugin generated code uses deprecated javax.annotation:
@javax.annotation.Generated
This doesn't compile when we use jakarta modules.
Eric Anderson commented
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.