Skip to content

Conversation

stuartmorgan-g
Copy link
Collaborator

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

Footnotes

  1. 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

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
@stuartmorgan-g
Copy link
Collaborator Author

CHANGELOG/version override: this is a no-op style change, so doesn't impact clients.

Copy link

@gemini-code-assist gemini-code-assist bot left a 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.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 26, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 26, 2025
Copy link
Contributor

auto-submit bot commented Sep 26, 2025

autosubmit label was removed for flutter/packages/10083, because - The status or check suite Mac_arm64 custom_package_tests stable has failed. Please fix the issues identified (or deflake) before re-applying this label.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 26, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 26, 2025
Copy link
Contributor

auto-submit bot commented Sep 26, 2025

autosubmit label was removed for flutter/packages/10083, because - The status or check suite Linux_web web_platform_tests_wasm_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 26, 2025
@auto-submit auto-submit bot merged commit b4cd85f into flutter:main Sep 26, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 29, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Sep 29, 2025
flutter/packages@389c678...34eec78

2025-09-29 [email protected] [camera_android_camerax] Implement
setDescriptionWhileRecording (flutter/packages#10030)
2025-09-29 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.jetbrains.kotlin:kotlin-bom from 2.0.21 to 2.2.20
in /packages/pigeon/platform_tests/test_plugin/android
(flutter/packages#10114)
2025-09-27 [email protected] [various] Standardize Java compat in
Gradle (flutter/packages#10091)
2025-09-26 [email protected] [various] Standardize gradle
dependencies (flutter/packages#10083)
2025-09-26 [email protected] [go_router_builder] Ignore upcoming
`experimental_member_use` warnings. (flutter/packages#10082)
2025-09-26 [email protected] [various] Standardize Gradle
`namespace` (flutter/packages#10084)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants