We are using Jakarta modules after switching from javax to jakarta packages.
When I use grpc-java generator, the generated classes contain:
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.35.0)",
comments = "Source: echo.proto")
This does not compile in my project. I cannot add dependency on the javax packages, as the library is the same:
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
and differs in version only (and as such cannot be on the classpath at the same time).
Is there a way to switch to jakarta.annotation.Generated, or to remove the annotation from generated source altogether?