Skip to content

[Gradle 9] Resolve Deprecations in flutter/flutter #173321

@jesswrd

Description

@jesswrd

We should resolve Gradle 9 deprecations warnings in packages, to eventually safely upgrade to Gradle 9. To see which Android projects have Gradle 9 deprecation warnings, we can run ./gradlew help --scan on all projects using Gradle.

Command run to determine which projects should be checked:
find . \( -name "build.gradle" -o -name "build.gradle.kts" \) -exec dirname {} \; | sed 's/^\.\///' | sed 's/^/- [ ] /' | sort. Only flutter/flutter contains both build.gradle AND build.gradle.kts files. flutter/packages only contains build.gradle files.

All projects that should be checked:

  • dev/a11y_assessments/android
  • dev/a11y_assessments/android/app
  • dev/benchmarks/complex_layout/android
  • dev/benchmarks/complex_layout/android/app
  • dev/benchmarks/macrobenchmarks/android
  • dev/benchmarks/macrobenchmarks/android/app
  • dev/benchmarks/microbenchmarks/android
  • dev/benchmarks/microbenchmarks/android/app
  • dev/benchmarks/multiple_flutters/android
  • dev/benchmarks/multiple_flutters/android/app
  • dev/benchmarks/platform_views_layout_hybrid_composition/android
  • dev/benchmarks/platform_views_layout_hybrid_composition/android/app
  • dev/benchmarks/platform_views_layout/android
  • dev/benchmarks/platform_views_layout/android/app
  • dev/benchmarks/test_apps/stocks/android
  • dev/benchmarks/test_apps/stocks/android/app
  • dev/integration_tests/android_engine_test/android
  • dev/integration_tests/android_engine_test/android/app
  • dev/integration_tests/android_semantics_testing/android
  • dev/integration_tests/android_semantics_testing/android/app
  • dev/integration_tests/android_views/android
  • dev/integration_tests/android_views/android/app
  • dev/integration_tests/channels/android
  • dev/integration_tests/channels/android/app
  • dev/integration_tests/deferred_components_test/android
  • dev/integration_tests/deferred_components_test/android/app
  • dev/integration_tests/deferred_components_test/android/component1
  • dev/integration_tests/display_cutout_rotation/android
  • dev/integration_tests/display_cutout_rotation/android/app
  • dev/integration_tests/external_textures/android
  • dev/integration_tests/external_textures/android/app
  • dev/integration_tests/flavors/android
  • dev/integration_tests/flavors/android/app
  • dev/integration_tests/flutter_gallery/android
  • dev/integration_tests/flutter_gallery/android/app
  • dev/integration_tests/module_host_with_custom_build_v2_embedding
  • dev/integration_tests/module_host_with_custom_build_v2_embedding/app
  • dev/integration_tests/platform_interaction/android
  • dev/integration_tests/platform_interaction/android/app
  • dev/integration_tests/pure_android_host_apps/android_custom_host_app
  • dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp
  • dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding
  • dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app
  • dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl
  • dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app
  • dev/integration_tests/release_smoke_test/android
  • dev/integration_tests/release_smoke_test/android/app
  • dev/integration_tests/spell_check/android
  • dev/integration_tests/spell_check/android/app
  • dev/integration_tests/ui/android
  • dev/integration_tests/ui/android/app
  • dev/manual_tests/android
  • dev/manual_tests/android/app
  • dev/tracing_tests/android
  • dev/tracing_tests/android/app
  • engine/src/flutter/shell/platform/android
  • engine/src/flutter/shell/platform/android/test_runner
  • examples/flutter_view/android
  • examples/flutter_view/android/app
  • examples/hello_world/android
  • examples/hello_world/android/app
  • examples/image_list/android
  • examples/image_list/android/app
  • examples/layers/android
  • examples/layers/android/app
  • examples/platform_channel/android
  • examples/platform_channel/android/app
  • examples/platform_view/android
  • examples/platform_view/android/app
  • packages/flutter_tools/gradle
  • packages/integration_test/android
  • packages/integration_test/example/android
  • packages/integration_test/example/android/app

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listd: examplesSample code and demosengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions