Is not possible at the moment to completely remove javax.annotation-api because this issue in grpc-java: https://github.com/grpc/grpc-java/issues/9179
Camel-Salesforce component uses gRPC to implement Pub/Sub API that allow to publish and subscribe to platform events, including real-time event monitoring events, and change data capture events.
grpc-java is used to generate com.salesforce.eventbus.protobuf.PubSubGrpc class that is generated with @javax.annotation.Generated annotation:
that's why the javax.annotation-api dependency is still needed.
We can use a trick to overcome this limitation of grpc-java generator:
we can process the generated sources and replacing the @javax.annotation.Generated with the jakarta one using the antrun maven plugin: