-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure dependencies converges #1659
Conversation
Use the maven enforcer plugin dependencyConvergence ([1]) rule to make sure that all dependencies converge. When conflicts were detected, the higher version has been choosen. Note that this is a work in progress... [1]: http://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
CLAs look good, thanks! |
…i-client-appengine clients to 1.22.0
Now that I'm doing it, I see that there a quite a few common deps that does not converge (guava, joda-time, ...). Another solution could be to have a dependencyManagement block at the root pom.xml to force those libraries to be at the specified version globally. Thoughts? |
This reverts commit ffe1b55.
…ttp & api-client-appengine clients to 1.22.0" This reverts commit c5ee626.
…te to v1-rev135-1.22.0" This reverts commit a072af8.
This reverts commit 0e77664.
This reverts commit 071889f.
This reverts commit fe9a4c6.
This is done using dependencyManagement at the root pom
Changes Unknown when pulling 44409b9 on rborer:dependency-convergence into ** on GoogleCloudPlatform:master**. |
@@ -51,7 +51,6 @@ | |||
<dependency> | |||
<groupId>junit</groupId> | |||
<artifactId>junit</artifactId> | |||
<version>4.12</version> | |||
<scope>test</scope> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Changes Unknown when pulling 7d5ad6b on rborer:dependency-convergence into ** on GoogleCloudPlatform:master**. |
Any news on this one? Let me know if my explanation is not clear or if I need to improve my PR :-) |
I intend on circling back - we're trying to get a lot of breaking changes through at the moment so we're concentrating on that. |
Thanks @garrettjonesgoogle I fully understand, it looks like things are moving at an interesting pace. Ping me when you intend to have a look at this one, there will probably be some conflicts to fix first. Also, I think we should compare the output of |
Closing out because #1943 was submitted. |
@garrettjonesgoogle thanks! |
Co-authored-by: Jeffrey Rennie <rennie@google.com> Co-authored-by: Tomo Suzuki <suztomo@google.com> Source-Link: https://github.com/googleapis/synthtool/commit/b59cf7b5a91ecab29e21fdfbb7e3b81066229be4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d
Co-authored-by: Jeffrey Rennie <rennie@google.com> Co-authored-by: Tomo Suzuki <suztomo@google.com> Source-Link: https://github.com/googleapis/synthtool/commit/b59cf7b5a91ecab29e21fdfbb7e3b81066229be4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d
Co-authored-by: Jeffrey Rennie <rennie@google.com> Co-authored-by: Tomo Suzuki <suztomo@google.com> Source-Link: https://github.com/googleapis/synthtool/commit/b59cf7b5a91ecab29e21fdfbb7e3b81066229be4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d
Co-authored-by: Jeffrey Rennie <rennie@google.com> Co-authored-by: Tomo Suzuki <suztomo@google.com> Source-Link: https://github.com/googleapis/synthtool/commit/b59cf7b5a91ecab29e21fdfbb7e3b81066229be4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d
…500) Revert "chore(deps): update dependency protobuf to v3.20.2 (#1659)" This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4. Source-Link: https://github.com/googleapis/synthtool/commit/a66e34625d760ad299627f6613a1bd438c1b62a9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a
Hi,
I'm planning to use the BigQuery client in one of my project where I have have enabled dependency convergence (see 1). Unfortunately, it seems that the client has quite a few dependencies that do not converge, so I've started to fix them as I cannot build my project.
This is a work in progress, please let me know if this would make sense to you or if I have to sort things out at my project level only.
Also, the policy I've chosen when a conflict has been detected is to always pick the highest version number.
I've also added in the modified pom.xml (only core project for the moment) which lower versions are excluded for reference.
Thanks,
Reynald