Spinaltap-core maven artifact has conflicting guava dependencies
- Dominant language
- Java
- Stars
- 450
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
I hit this error when trying to fetch spinal-tap-core using bazel and rules_jvm_external
```
ERROR: An error occurred during the fetch of repository 'unpinned_multiversion_maven_com_airbnb_spinaltap_spinaltap_core_0_1_17':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_thomas_bao/e92c33aea2f42ec7b4ba773d1b87f024/external/rules_jvm_external/private/rules/coursier.bzl", line 989, column 38, in _coursier_fetch_impl
dep_tree = make_coursier_dep_tree(
File "/private/var/tmp/_bazel_thomas_bao/e92c33aea2f42ec7b4ba773d1b87f024/external/rules_jvm_external/private/rules/coursier.bzl", line 922, column 13, in make_coursier_dep_tree
fail("Error while fetching artifact with coursier: " + exec_result.stderr)
Error in fail: Error while fetching artifact with coursier: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Resolution error: Conflicting dependencies:
com.google.guava:guava:16.0 or 18.0 or [10.+,15.0] wanted by
com.airbnb.spinaltap:spinaltap-core:0.1.17 wants 18.0
com.fasterxml.jackson.datatype:jackson-datatype-guava:2.7.8 wants 16.0
└─ com.airbnb.spinaltap:spinaltap-core:0.1.17
com.github.rholder:guava-retrying:1.0.6 wants [10.+,15.0]
└─ com.airbnb.spinaltap:spinaltap-core:0.1.17
ERROR: /Users/thomas_bao/airlab/repos/treehouse/WORKSPACE.bazel:50:27: fetching coursier_fetch rule //external:unpinned_multiversion_maven_com_airbnb_spinaltap_spinaltap_core_0_1_17: Traceback (most recent call last):
File "/private/var/tmp/_bazel_thomas_bao/e92c33aea2f42ec7b4ba773d1b87f024/external/rules_jvm_external/private/rules/coursier.bzl", line 989, column 38, in _coursier_fetch_impl
dep_tree = make_coursier_dep_tree(
File "/private/var/tmp/_bazel_thomas_bao/e92c33aea2f42ec7b4ba773d1b87f024/external/rules_jvm_external/private/rules/coursier.bzl", line 922, column 13, in make_coursier_dep_tree
fail("Error while fetching artifact with coursier: " + exec_result.stderr)
Error in fail: Error while fetching artifact with coursier: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Resolution error: Conflicting dependencies:
com.google.guava:guava:16.0 or 18.0 or [10.+,15.0] wanted by
com.airbnb.spinaltap:spinaltap-core:0.1.17 wants 18.0
com.fasterxml.jackson.datatype:jackson-datatype-guava:2.7.8 wants 16.0
└─ com.airbnb.spinaltap:spinaltap-core:0.1.17
com.github.rholder:guava-retrying:1.0.6 wants [10.+,15.0]
└─ com.airbnb.spinaltap:spinaltap-core:0.1.17
ERROR: Error while fetching artifact with coursier: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Resolution error: Conflicting dependencies:
com.google.guava:guava:16.0 or 18.0 or [10.+,15.0] wanted by
com.airbnb.spinaltap:spinaltap-core:0.1.17 wants 18.0
com.fasterxml.jackson.datatype:jackson-datatype-guava:2.7.8 wants 16.0
└─ com.airbnb.spinaltap:spinaltap-core:0.1.17
com.github.rholder:guava-retrying:1.0.6 wants [10.+,15.0]
└─ com.airbnb.spinaltap:spinaltap-core:0.1.17
```
Contributor guide
Research direction
Start by reproducing the Bazel fetch using rules_jvm_external for com.airbnb.spinaltap:spinaltap-core:0.1.17 and inspect its dependency metadata. Trace the Guava requirements from spinaltap-core, jackson-datatype-guava, and guava-retrying; done means the published artifact resolves without the conflicting Guava versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100