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 — 1.0.0 Datastore & 0.17.1-alpha don't play well together · Issue #2020 · googleapis/google-cloud-java

1.0.0 Datastore & 0.17.1-alpha don't play well together #2020

New issue
Copy link
New issue
Copy link
Closed
Closed
1.0.0 Datastore & 0.17.1-alpha don't play well together#2020
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

In my pom.xml:

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

Errors:

[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-pubsub: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-pubsub: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-pubsub: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-pubsub: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-pubsub:jar:0.17.1-alpha -> io.grpc:grpc-auth:jar:1.2.0 -> io.grpc:grpc-core:jar:[1.2.0,1.2.0], 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-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-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]] -> [Help 1]

Activity

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

    @lesv
    lesv
    on Apr 29, 2017
    ContributorAuthor
    More actions

    After sleeping on it, I realized that this isn't as big a deal as I was thinking. (we just need to tell people you can't mix GA and non-GA. We should talk about this however.

  4. lesv
    added
    docs
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    priority: p0Highest priority. Critical issue. P0 implies highest priority.
    and removed
    priority: p0Highest priority. Critical issue. P0 implies highest priority.
    docs
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Apr 29, 2017
  5. lesv commented on Apr 29, 2017

    @lesv
    lesv
    on Apr 29, 2017
    ContributorAuthor
    More actions

    Argh - You haven't published a 0.17.1-alpha for Datastore. Now, I'm just unhappy. I'll try to use the big single jar, but this doesn't work.

  6. lesv commented on Apr 29, 2017

    @lesv
    lesv
    on Apr 29, 2017
    ContributorAuthor
    More actions

    So, I tried just including the big cloud jar, no joy. :(

        <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]

  7. garrettjonesgoogle commented on Apr 30, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Apr 30, 2017
    Contributor
    More actions

    So it looks like the mess is caused by com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0 depending on com.google.api.grpc:grpc-google-common-protos:jar:0.1.0 . If we could advance the grpc-google-common-protos dependency to 0.1.9, everything would be sane. Maybe you could override the version on your side for the moment?

  8. vam-google commented on Apr 30, 2017

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

    Adding this this to the pom.xml should help:

      <dependencyManagement>
        <dependencies>
          <dependency>
              <groupId>io.grpc</groupId>
              <artifactId>grpc-core</artifactId>
              <version>1.2.0</version>
          </dependency>
        </dependencies>
      </dependencyManagement>
    

    As Garrett mentioned, this is caused by the fact that datastore transitively is dependent on grpc-core-1.0.1 (via datastore-v1-protos-1.3.0, which in its turn depends on grpc-google-common-protos-0.1.0, which depends on grpc-core-1.0.1), while the whole project is using grpc-core-1.2.

    This problem exists only for currently released google-cloud-datastore-1.0.0 and for google-clou-0.17.1-alpha (as it depends on datastore 1.0.0). The rest of the clients should work fine.

    So complete working pom.xml may look like this (tested on my machine and it compiles fine):

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <artifactId>google-cloud-workingdatastore</artifactId>
      <groupId>com.google.cloud</groupId>
      <version>0.0.1</version>
      <packaging>jar</packaging>
    
      <dependencyManagement>
        <dependencies>
          <dependency>
              <groupId>io.grpc</groupId>
              <artifactId>grpc-core</artifactId>
              <version>1.2.0</version>
          </dependency>
        </dependencies>
      </dependencyManagement>
    
      <dependencies>
        <dependency>
          <groupId>com.google.cloud</groupId>
          <artifactId>google-cloud-datastore</artifactId>
          <version>1.0.0</version>
        </dependency>
        <dependency>
          <groupId>com.google.cloud</groupId>
          <artifactId>google-cloud-pubsub</artifactId>
          <version>0.17.1-alpha</version>
        </dependency>
      </dependencies>
    </project>
    

    We did not encounter this problem in our tests and the rest of the project, because this dependencyManagement override is already specified in our parent pom (transitively via grpc-all, so all modules, including tests and examples do not suffer from this issue, but any standalone module would). Probably we can fix it by just adding this dependencyManagement config to google-cloud-datastore's pom explicitly.

  9. lesv commented on May 1, 2017

    @lesv
    lesv
    on May 1, 2017
    ContributorAuthor
    More actions

    Yep - totally understand, just don't want to put that in a bunch of sample code. :(

  10. garrettjonesgoogle commented on May 4, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 4, 2017
    Contributor
    More actions

    I have filed googleapis/google-cloud-datastore#170 to get datastore-v1-protos updated.

  11. garrettjonesgoogle commented on May 4, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 4, 2017
    Contributor
    More actions

    This is fixed in #2029 . We will track the updating of datastore-v1-protos separately.

  12. garrettjonesgoogle
    closed this as completedon May 4, 2017
  13. chingor13
    added 2 commits that reference this issue on Feb 20, 2026

    deps: update dependency org.json:json to v20230227 (#2020)

    6d6bb76

    chore(main): release 2.33.1 (#2026)

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

    deps: update dependency com.fasterxml.jackson.core:jackson-databind t…

    c2bb00a
  15. meltsufin
    added 3 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.129.4 (#2020)

    5ac6cd6

    chore(main): release 1.129.4 (#2020)

    4eeb44a

    deps: update beam.version to v2.63.0 (#2020)

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

    test(deps): update dependency io.grpc:protoc-gen-grpc-java to v1.60.0 (…

    b339c15
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.