Skip to content

Commit 8862e36

Browse files
authored
docs: release note helps dependency conflicts resolution (#10364)
* docs: release note helps dependency conflicts resolution docs: release note helps dependency conflicts resolution * Update TROUBLESHOOTING.md * Update TROUBLESHOOTING.md
1 parent 4df2fba commit 8862e36

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

TROUBLESHOOTING.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,26 @@ There are different strategies to resolve conflicts, but you must understand the
200200
...
201201
```
202202

203+
- The release note of the libraries-bom shows the compatible dependency libraries.
204+
For example, https://github.com/googleapis/java-cloud-bom/releases/tag/v26.31.0 shows
205+
206+
> These client libraries are built with the following Java libraries:
207+
>
208+
> - Guava: 32.1.3-jre
209+
> - Protobuf Java: 3.25.2
210+
> - Google Auth Library: 1.22.0
211+
> - Google API Client: 2.2.0
212+
> - gRPC: 1.61.0
213+
> - GAX: 2.41.0
214+
> - Google Cloud Core: 2.31.0
215+
216+
By examining the dependency graph of your project (`mvn dependency:tree -Dverbose`,
217+
`gradle dependencies`, or `sbt dependencyTree`), you may find some of the dependencies
218+
having unexpected versions. They might cause dependency conflicts.
219+
203220
- If changing dependency versions causes other failures,
204221
consider [shading dependencies](https://maven.apache.org/plugins/maven-shade-plugin/)
205-
that conflict with `google-cloud-java`.
222+
that conflict with Google Cloud Java libraries.
206223

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

0 commit comments

Comments
 (0)