GeezerVison is showing github.com — [sdk-platform-java] Provide a version that doesn't build upon old javax libraries · Issue #12363 · googleapis/google-cloud-java
[sdk-platform-java] Provide a version that doesn't build upon old javax libraries #12363
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Description
Is your feature request related to a problem? Please describe.
In version 1.39 a dependency to api-common was introduced.
Commit
api-common still references javax.annotations a dependency that has moved to jakarta.annotations years ago. This can cause a headache for projects that already moved to jakarta.
Describe the solution you'd like
Update to the jakarta namespace or remove the api-common dependency because it is only used for one annotation anyway.
Activity
added
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2Moderately-important priority. Fix may not be included in next release. on Mar 20, 2026lqiu96 commented on Mar 20, 2026
I see. Thanks for raising this.
We added api-common specifically to utilize the @InternalApi and @ObsoleteApi annotations for features in the auth library. I believe the only issue with excluding javax.annotations is the single @Generated annotation as JwtClaims generated with AutoValue.
Our deps are managed in sdk-platform-java. Going to move this issue over to that repo where we see how to migrate over to the jakarta.annotations dep
Interestingly, it just seems like IntelliJ flags the @Generated annotation as it can't be found, but I am able to build locally when excluding the dep and the tests pass
changed the title
[-]Provide a version that doesn't build upon old javax libraries[/-] [+][sdk-platform-java] Provide a version that doesn't build upon old javax libraries[/+] on Apr 1, 2026added
priority: p3Desirable enhancement or fix. May not be included in next release. and removed
priority: p2Moderately-important priority. Fix may not be included in next release. on Sep 28, 2026added 2 commits that reference this issue
on Sep 29, 2026This issue will close once commit 668fd18 is merged into the 'main' branch.668fd18 This issue will close once commit 976d588 is merged into the 'main' branch.976d588
Metadata
Metadata
priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Development
No branches or pull requestsIssue actions