This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
fix(java): exclude unused dependencies from gax-grpc #721
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Gax-grpc contains some native-image configurations that are needed for native-image compilation to be successful (see #688). However, adding the gax-grpc dependency also transitively brings in it's own dependencies which are not required for either standard Java or native image users. This can result in some side effects including the one seen in googleapis/gax-java#1781. This PR excludes those dependencies to ensure that only the necessary code is brought in.
Reproducer: https://github.com/mpeddada1/test-gax/tree/main