-
Notifications
You must be signed in to change notification settings - Fork 4
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
Filter to the minimal required dependencies for REST/HTTP usage #6
Conversation
<!-- provided by core --> | ||
<exclusion> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#5 (review) still stands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No strong opinion on that as both solutions have pros and cons, but I suggest to follow the approach already in place in other Google plugins. So my proposal to use Guava from core.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you mean from core.
OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you exclude guava here and the sdk requires a higher version you will not get a enforcer upper-bounds
error when bumping. so you would need to check on each and every update to the library proposed by dependabot.
Whilst this is fine - you should leave a comment on the dependency so it is not forgotten (same for all others).
<!-- provided by core --> | ||
<exclusion> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you exclude guava here and the sdk requires a higher version you will not get a enforcer upper-bounds
error when bumping. so you would need to check on each and every update to the library proposed by dependabot.
Whilst this is fine - you should leave a comment on the dependency so it is not forgotten (same for all others).
gcp-java-sdk-storage/pom.xml
Outdated
<exclusions> | ||
|
||
<!-- use plugin dependency instead --> | ||
<exclusion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is excluded - you will not get an upper-bounds error. rather add this dependency before the google-cloud-one.
note this will likely break spotless - but dependency order probably does matter here (as the depth would be the same unclear if maven-hpi will take it from the plugin or not - probably falls back to first definition - check)!
This excludes all dependencies that not used while using REST/HTTP mode.
Testing done
Submitter checklist