Skip to content

Conversation

igorbernstein2
Copy link
Contributor

@igorbernstein2 igorbernstein2 commented Feb 24, 2020

This should mitigate diamond dependency issues.
Gradle and maven have different behaviors when resolving transitive dependency version conflicts. Gradle selects the greatest version, while maven picks the closest in the dependency hierarchy. For example:
Say http-client and google-auth-library pull in different versions of Apache commons logging at the same depth. Then which one your project gets depends on whether you depend on http-client first and google-auth-library second or vice versa.

This PR enforces that the resolution behavior remains consistent and will break the build.

Fixes issues like googleapis/google-http-java-client#981

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 24, 2020
@codecov
Copy link

codecov bot commented Feb 24, 2020

Codecov Report

Merging #203 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #203      +/-   ##
============================================
+ Coverage     82.23%   82.25%   +0.01%     
  Complexity      983      983              
============================================
  Files            99       99              
  Lines          6040     6040              
  Branches        332      332              
============================================
+ Hits           4967     4968       +1     
+ Misses          896      895       -1     
  Partials        177      177              
Impacted Files Coverage Δ Complexity Δ
...gle/cloud/bigtable/data/v2/BigtableDataClient.java 94.02% <0.00%> (ø) 39.00% <0.00%> (ø%) ⬆️
...igtable/admin/v2/BaseBigtableTableAdminClient.java 62.31% <0.00%> (ø) 50.00% <0.00%> (ø%) ⬆️
...able/admin/v2/BaseBigtableInstanceAdminClient.java 63.35% <0.00%> (ø) 56.00% <0.00%> (ø%) ⬆️
...om/google/cloud/bigtable/emulator/v2/Emulator.java 60.86% <0.00%> (+0.86%) 14.00% <0.00%> (ø%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 601f30c...280cc11. Read the comment docs.

@igorbernstein2 igorbernstein2 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 25, 2020
@igorbernstein2 igorbernstein2 merged commit 907e72b into googleapis:master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants