Skip to content
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

fix: client library should use libraries-bom #169

Closed
wants to merge 2 commits into from

Conversation

olavloite
Copy link
Collaborator

The client library should use the com.google.cloud:libraries-bom to prevent version conflicts.

Related to GoogleCloudPlatform/java-docs-samples#2718
Fixes #168

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 22, 2020
@skuruppu skuruppu requested a review from chingor13 April 22, 2020 10:20
Copy link
Contributor

@chingor13 chingor13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The libraries-bom is for customers and includes spanner and it's grpc/proto artifacts. Spanner cannot use and be in the libraries-bom at the same time.

We're trying out a shared-dependencies bom which contains all of the common dependencies, but it must be used in conjunction with the maven-flatten-plugin which will rewrite the pom at publish time and explicitly declare all dependencies (including transitive ones) with their versions. I can send a PR which demonstrates this.

@olavloite
Copy link
Collaborator Author

I can send a PR which demonstrates this.

@chingor13
Thanks for the review. I would very much appreciate an example for that.

@chingor13
Copy link
Contributor

See #172 for what the shared-dependencies import would look like

@olavloite
Copy link
Collaborator Author

Closing in favor of #172

@olavloite olavloite closed this Apr 23, 2020
rajatbhatta pushed a commit to rajatbhatta/java-spanner that referenced this pull request Nov 17, 2022
…oogleapis#169)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` |

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-spanner-jdbc).
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.

Client library should use libraries-bom
3 participants