-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[various] Standardize gradle dependencies #10083
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
base: main
Are you sure you want to change the base?
[various] Standardize gradle dependencies #10083
Conversation
Standardizes dependencies in build.gradle files on using parentheses rather than space. This doesn't enforce this syntax via repo tool checks, since it's not critical (it just reduces future churn when switching to Kotlin), and eventually the switch to Kotlin will provide the enforcement. It does fix a latent issue where test-only dependency changes that used the () syntax wouldn't have been recognized by the tool as test-only changes for changelog/version check purposes. Part of flutter/flutter#176065
CHANGELOG/version override: this is a no-op style change, so doesn't impact clients. |
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.
Code Review
This pull request standardizes Gradle dependency declarations across numerous build.gradle
files to use parentheses and double quotes, aiming for better consistency and closer alignment with Kotlin syntax. The changes are widespread but mechanical. A key improvement is the update to package_state_utils.dart
to correctly recognize test-only dependencies using the new parenthesis syntax, which is a valuable fix. The accompanying tests for this logic have been updated and expanded, which is great. My review found the changes to be well-executed, with just one minor typo in a test file.
|
||
test('requires changelog or version change for other build.gradle changes', | ||
test( | ||
'does not requires changelog or version change for build.gradle ' |
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.
'does not requires changelog or version change for build.gradle ' | |
'does not require changelog or version change for build.gradle ' |
Standardizes dependencies in build.gradle files on using parentheses rather than space. Also standardizes these lines on
"
rather than'
while touching them, since that also moves closer to Kotlin syntax.This doesn't enforce this syntax via repo tool checks, since it's not critical (it just reduces future churn when switching to Kotlin), and eventually the switch to Kotlin will provide the enforcement.
It does fix a latent issue where test-only dependency changes that used the () syntax wouldn't have been recognized by the tool as test-only changes for changelog/version check purposes.
Part of flutter/flutter#176065
Pre-Review Checklist
[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///
).Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3