GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Single integrated Jar doesn't work. Diamond Dependency issue · Issue #2021 · googleapis/google-cloud-java

Single integrated Jar doesn't work. Diamond Dependency issue #2021

New issue
Copy link
New issue
Copy link
Closed
Closed
Single integrated Jar doesn't work. Diamond Dependency issue#2021
Copy link
Assignees
garrettjonesgoogle
Labels
priority: p0Highest priority. Critical issue. P0 implies highest priority.

Description

@lesv
lesv
opened on Apr 29, 2017
Issue body actions

See #2020
Since we can't include 1.0.0 Datastore and 0.17.1-alpha pubsub, I tried replacing with the integrated JAR. It fails.

<dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud</artifactId>
    <version>0.17.1-alpha</version>
</dependency>

[ERROR] Failed to execute goal on project flexible-pubsub: Could not resolve dependencies for project com.example.flexible:flexible-pubsub:war:1.0-SNAPSHOT: Failed to collect dependencies for com.example.flexible:flexible-pubsub:war:1.0-SNAPSHOT: Could not resolve version conflict among [com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-datastore:jar:1.0.0 -> com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0 -> com.google.api.grpc:grpc-google-common-protos:jar:0.1.0 -> io.grpc:grpc-all:jar:1.0.1 -> io.grpc:grpc-protobuf-nano:jar:1.0.1 -> io.grpc:grpc-core:jar:1.0.1, com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-datastore:jar:1.0.0 -> com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0 -> com.google.api.grpc:grpc-google-common-protos:jar:0.1.0 -> io.grpc:grpc-all:jar:1.0.1 -> io.grpc:grpc-core:jar:[1.0.1,1.0.1], com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-datastore:jar:1.0.0 -> com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0 -> com.google.api.grpc:grpc-google-common-protos:jar:0.1.0 -> io.grpc:grpc-all:jar:1.0.1 -> io.grpc:grpc-okhttp:jar:1.0.1 -> io.grpc:grpc-core:jar:[1.0.1,1.0.1], com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-errorreporting:jar:0.17.1-alpha -> com.google.cloud:google-cloud-core-grpc:jar:1.0.0 -> io.grpc:grpc-protobuf:jar:1.2.0 -> io.grpc:grpc-core:jar:1.2.0, com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-errorreporting:jar:0.17.1-alpha -> com.google.cloud:google-cloud-core-grpc:jar:1.0.0 -> io.grpc:grpc-protobuf:jar:1.2.0 -> io.grpc:grpc-protobuf-lite:jar:1.2.0 -> io.grpc:grpc-core:jar:1.2.0, com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-errorreporting:jar:0.17.1-alpha -> io.grpc:grpc-netty:jar:1.2.0 -> io.grpc:grpc-core:jar:[1.2.0,1.2.0], com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-errorreporting:jar:0.17.1-alpha -> io.grpc:grpc-stub:jar:1.2.0 -> io.grpc:grpc-core:jar:1.2.0, com.google.cloud:google-cloud:jar:0.17.1-alpha -> com.google.cloud:google-cloud-errorreporting:jar:0.17.1-alpha -> io.grpc:grpc-auth:jar:1.2.0 -> io.grpc:grpc-core:jar:[1.2.0,1.2.0]] -> [Help 1]

Activity

  1. lesv
    added
    priority: p0Highest priority. Critical issue. P0 implies highest priority.
    on Apr 29, 2017
  2. lesv
    assigned
    pongad
    ,
    garrettjonesgoogle
    and
    vam-google
    on Apr 29, 2017
  3. lesv commented on Apr 29, 2017

    @lesv
    lesv
    on Apr 29, 2017
    ContributorAuthor
    More actions

    @omaray FYI

  4. vam-google commented on Apr 30, 2017

    @vam-google
    vam-google
    on Apr 30, 2017
    Contributor
    More actions

    Please check #2020 (comment) for a workaround.

  5. garrettjonesgoogle commented on May 2, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 2, 2017
    Contributor
    More actions

    For some reason, the google-cloud artifact seemed to build and get released fine. We need to figure out how to make it fail in this scenario.

  6. vam-google commented on May 2, 2017

    @vam-google
    vam-google
    on May 2, 2017
    Contributor
    More actions

    It did not fail, because we have this in the google-cloud-java/pom.xml:

    <dependencyManagement>
          <dependency>
              <groupId>io.grpc</groupId>
              <artifactId>grpc-all</artifactId>
              <version>${grpc.version}</version>
          </dependency>
    </dependencyManagement>
    

    Removing those lines will make the build fail for datastore with same "can't resolve dependency" error message.

  7. pongad commented on May 2, 2017

    @pongad
    pongad
    on May 2, 2017
    Contributor
    More actions

    What @vam-google said makes sense. What's the "proper fix" for this though? I imagine it is to update google-cloud-datastore package to depend on grpc:1.2.0. Datastore is currently at 1.0.0, do we need to move this to 1.1.0?

  8. garrettjonesgoogle commented on May 2, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 2, 2017
    Contributor
    More actions

    I would say 1.0.1.

  9. lesv commented on May 2, 2017

    @lesv
    lesv
    on May 2, 2017 via email
    ContributorAuthor
    More actions
    1.0.1 would be good.
    …
    On Tue, May 2, 2017 at 3:40 PM, Garrett Jones ***@***.***> wrote: I would say 1.0.1. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2021 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABFVjg4ukWYIShf1EaKOC4fPhMueAH-tks5r17DrgaJpZM4NMSd6> .
    -- * • **Les Vogel* * • *Cloud Developer Relations * • *[email protected] * • *+1-4 <%2B1-650-338-7103>08-676-7023
  10. garrettjonesgoogle commented on May 4, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 4, 2017
    Contributor
    More actions

    This is fixed in #2029 .

  11. garrettjonesgoogle
    closed this as completedon May 4, 2017
  12. theacodes
    unassigned
    pongad
    and
    vam-google
    on Sep 28, 2018
  13. chingor13
    added 2 commits that reference this issue on Feb 20, 2026

    fix: remove write_location header pending discussion (#2021)

    0941d43

    chore(main): release 2.33.0 (#2022)

    d5d6325
  14. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.29.1 (googleapis#2021)

    10be763
  15. meltsufin
    added 5 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    0873594

    chore(main): release 1.133.0 (#2206)

    a3b6539

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    446845d

    chore(main): release 1.133.0 (#2206)

    1180af9

    FIX: Use lazy encoding in UTF-8 encoded string comparison (#2021)

    2b53380
  16. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(main): release 2.30.1-SNAPSHOT (googleapis#2021)

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

priority: p0Highest priority. Critical issue. P0 implies highest priority.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.