-
Notifications
You must be signed in to change notification settings - Fork 50
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
Question: should google-cloud-spanner-jdbc use the Libraries BOM? #252
Comments
@stephaniewang526 @elharo @chingor13 What do you think? |
@suztomo Just to supply some more context on #133: The JDBC driver repository used to contain two main components:
We wanted to expose the generic Connection API publicly for other purposes than only the JDBC driver, so that part of the code was moved to the java-spanner repository in an earlier PR. #133 removed the code of the Connection API from the JDBC driver repository and changed the code to use the Connection API from the java-spanner repository instead. So from the perspective of the intention behind #133, it's perfectly reasonable to change how the dependencies are included in the JDBC driver as long as it is able to use the needed components from the java-spanner repository, if that fixes the dependency problems we are currently experiencing. |
@olavloite Thank you for explanation. |
Simply removing the libraries-bom generates the following errors:
Continuing. |
While troubleshooting #251 (comment), I found the pom.xml of this repository imports the Libraries BOM. (Since when? The PR #133 in May 2020 added the Libraries BOM in this project's pom.xml through dependencyManagement section's import. It seems that the PR intended to make it easy to specify the versions of multiple libraries.)
However, the Libraries BOM includes this repository's library (
com.google.cloud:google-cloud-spanner-jdbc
) through google-cloud-bom. It's a circular dependency. This circular dependency makes dependency troubleshooting difficult in #251 .Shall we use the shared dependency BOM only and remove the libraries BOM from the dependency management section?
Here is removal of the library versions from pom.xml: https://github.com/googleapis/java-spanner-jdbc/pull/133/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R59
The text was updated successfully, but these errors were encountered: