Skip to content

Commit

Permalink
docs: release note helps dependency conflicts resolution (#10364)
Browse files Browse the repository at this point in the history
* docs: release note helps dependency conflicts resolution

docs: release note helps dependency conflicts resolution

* Update TROUBLESHOOTING.md

* Update TROUBLESHOOTING.md
  • Loading branch information
suztomo authored Feb 15, 2024
1 parent 4df2fba commit 8862e36
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,26 @@ There are different strategies to resolve conflicts, but you must understand the
...
```

- The release note of the libraries-bom shows the compatible dependency libraries.
For example, https://github.com/googleapis/java-cloud-bom/releases/tag/v26.31.0 shows

> These client libraries are built with the following Java libraries:
>
> - Guava: 32.1.3-jre
> - Protobuf Java: 3.25.2
> - Google Auth Library: 1.22.0
> - Google API Client: 2.2.0
> - gRPC: 1.61.0
> - GAX: 2.41.0
> - Google Cloud Core: 2.31.0
By examining the dependency graph of your project (`mvn dependency:tree -Dverbose`,
`gradle dependencies`, or `sbt dependencyTree`), you may find some of the dependencies
having unexpected versions. They might cause dependency conflicts.

- If changing dependency versions causes other failures,
consider [shading dependencies](https://maven.apache.org/plugins/maven-shade-plugin/)
that conflict with `google-cloud-java`.
that conflict with Google Cloud Java libraries.

For example, to shade `guava` and `protobuf-java`:

Expand Down

0 comments on commit 8862e36

Please sign in to comment.