Some dependencies in java-alloydb/google-cloud-alloydb module seem to have wrong dependency scopes. #10037
Labels
api: alloydb
Issues related to the AlloyDB API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
status: blocked
Resolving the issue is dependent on other work.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Dependency "com.google.api.grpc:grpc-google-common-protos" and "com.google.api.grpc:grpc-google-iam-v1" in the java-alloydb/google-cloud-alloydb module is set to the default dependency scope "compile". However, it seems that they are only used for tests.
Possible Outcome
This brings redundant compile time dependency not only for google-cloud-alloydb, but also for downstream projects using it. Changing dependency scope to test can help maintaining a correct and simpler dependency tree.
Solution
I modified the scopes to "test", proceeded to recompile the module, and then ran the tests. As a result of these modifications, the module compiled without issues, and all the tests were successfully passed.
The text was updated successfully, but these errors were encountered: