Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

A test case for grpc-netty-shaded version agreement #532

@suztomo

Description

@suztomo

Example googleapis/java-spanner#1553

Failed to execute goal on project spanner-snapshot: Could not resolve dependencies for project com.google.cloud:spanner-snapshot:jar:1.0.23:
Failed to collect dependencies for com.google.cloud:spanner-snapshot:jar:1.0.23:
...
com.google.cloud:google-cloud-spanner:jar:6.15.3-SNAPSHOT -> com.google.api:gax-grpc:jar:2.7.0 -> io.grpc:grpc-xds:jar:1.41.0 -> io.grpc:grpc-netty-shaded:jar:[1.41.0,1.41.0],
com.google.cloud:google-cloud-spanner:jar:6.15.3-SNAPSHOT -> io.grpc:grpc-alts:jar:1.42.1 -> io.grpc:grpc-netty-shaded:jar:[1.42.1,1.42.1],

A canary project that declares both com.google.api:gax-grpc and io.grpc:grpc-alts using the version of this shared dependencies BOM should be able to build.

Tricky part is that if the canary project imports the shared dependencies BOM, then Maven controls the transitive dependency and thus it just succeeds. Maybe a multi-module project would be the solution.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions