jakartaee / common-annotations-api

Jakarta Annotations
https://eclipse.org/ee4j/ca
Other
53 stars 39 forks source link

Which version should I choose? #125

Closed chenwenlong-java closed 8 months ago

chenwenlong-java commented 11 months ago

When I upgraded from grpc 1.29.0 to 1.59.0, grpc required'org.apache.tomcat: annotations-api: 6.0.53 ', and I used'javax.annotation: javax.annotation-api: 1.3.2' in the original project. I see that Tomcat implements the Jakarta Annotations specification, so for org.apache.tomcat: annotations-api: 6.0.53, which version of Jakarta Annotations should I choose to maintain their compatibility?

lukasj commented 8 months ago

depending on java package names:

note that 2.1.1 is backward compatible with 2.0.0.

In your particular case, for org.apache.tomcat: annotations-api: 6.0.53 jakarta.annotation:jakarta.annotation-api:1.3.5 is the one to choose