Skip to content

[sdk-platform-java] x-goog-api-client is incorrect when the customer uses shading #12547

Closed as not planned

Description

@igorbernstein2

The current approach pulls the version from the jar manifest. Unfortunately this will break if the application builds an uber jar (the version will come from the uber jar rather then the generated client or gax). A more robust approach would to follow grpc's approach and embed it in a class or to use the maven-resources-plugin. I recently worked around this issue in the bigtable client:
googleapis/java-bigtable#451

Activity

  1. added
    triage me
    🚨 critical
    on Oct 8, 2020
  2. added
    priority: p2
    type: bug
    type: feature request
    and removed
    🚨 critical
    triage me
    type: bug
    on Oct 15, 2020
  3. added
    priority: p3
    and removed
    priority: p2
    on Oct 12, 2022
  4. changed the title [-]x-goog-api-client is incorrect when the customer uses shading[/-] [+][sdk-platform-java] x-goog-api-client is incorrect when the customer uses shading[/+] on Apr 1, 2026
  5. jjmew commented on Nov 18, 2026

    @jjmew

    Closing this issue due to inactivity (no activity in over two years). If it's still relevant, please feel free to reopen it or comment with any additional information, such as the library version and steps to reproduce. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3type: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions