From d9638d25d7ef27c29da29f3765efe4c376c166ca Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 21 Apr 2021 21:41:07 -0700 Subject: [PATCH] migrate from jcenter to mavencentral (#80908) --- dev/benchmarks/complex_layout/android/build.gradle | 12 ------------ dev/benchmarks/macrobenchmarks/android/build.gradle | 12 ------------ dev/benchmarks/microbenchmarks/android/build.gradle | 12 ------------ .../multiple_flutters/android/build.gradle | 12 ------------ .../platform_views_layout/android/build.gradle | 12 ------------ .../android/build.gradle | 12 ------------ dev/benchmarks/test_apps/stocks/android/build.gradle | 12 ------------ .../abstract_method_smoke_test/android/build.gradle | 12 ------------ .../android_custom_host_app/build.gradle | 12 ------------ .../android/build.gradle | 12 ------------ .../android_host_app_v2_embedding/build.gradle | 12 ------------ .../android_semantics_testing/android/build.gradle | 12 ------------ dev/integration_tests/channels/android/build.gradle | 12 ------------ .../external_ui/android/build.gradle | 12 ------------ dev/integration_tests/flavors/android/build.gradle | 12 ------------ .../flutter_gallery/android/build.gradle | 12 ------------ .../gradle_deprecated_settings/android/build.gradle | 12 ------------ .../hybrid_android_views/android/build.gradle | 12 ------------ .../build.gradle | 12 ------------ .../non_nullable/android/build.gradle | 12 ------------ .../platform_interaction/android/build.gradle | 12 ------------ .../release_smoke_test/android/build.gradle | 12 ------------ dev/integration_tests/ui/android/build.gradle | 12 ------------ dev/manual_tests/android/build.gradle | 12 ------------ examples/flutter_view/android/build.gradle | 4 ++-- examples/hello_world/android/build.gradle | 4 ++-- examples/image_list/android/build.gradle | 4 ++-- examples/layers/android/build.gradle | 4 ++-- examples/platform_channel/android/build.gradle | 4 ++-- examples/platform_view/android/build.gradle | 4 ++-- packages/flutter_tools/gradle/flutter.gradle | 2 +- .../flutter_tools/gradle/resolve_dependencies.gradle | 2 +- .../templates/app/android-java.tmpl/build.gradle | 4 ++-- .../templates/app/android-kotlin.tmpl/build.gradle | 4 ++-- .../module/android/gradle/build.gradle.copy.tmpl | 4 ++-- .../plugin/android-java.tmpl/build.gradle.tmpl | 4 ++-- .../plugin/android-kotlin.tmpl/build.gradle.tmpl | 4 ++-- .../test_data/deferred_components_project.dart | 4 ++-- packages/integration_test/android/build.gradle | 4 ++-- .../integration_test/example/android/build.gradle | 4 ++-- 40 files changed, 30 insertions(+), 318 deletions(-) diff --git a/dev/benchmarks/complex_layout/android/build.gradle b/dev/benchmarks/complex_layout/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/benchmarks/complex_layout/android/build.gradle +++ b/dev/benchmarks/complex_layout/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/benchmarks/macrobenchmarks/android/build.gradle b/dev/benchmarks/macrobenchmarks/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/benchmarks/macrobenchmarks/android/build.gradle +++ b/dev/benchmarks/macrobenchmarks/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/benchmarks/microbenchmarks/android/build.gradle b/dev/benchmarks/microbenchmarks/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/benchmarks/microbenchmarks/android/build.gradle +++ b/dev/benchmarks/microbenchmarks/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/benchmarks/multiple_flutters/android/build.gradle b/dev/benchmarks/multiple_flutters/android/build.gradle index c68a861f280..529092bfc25 100644 --- a/dev/benchmarks/multiple_flutters/android/build.gradle +++ b/dev/benchmarks/multiple_flutters/android/build.gradle @@ -8,12 +8,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { classpath "com.android.tools.build:gradle:4.1.2" @@ -28,12 +22,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/benchmarks/platform_views_layout/android/build.gradle b/dev/benchmarks/platform_views_layout/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/benchmarks/platform_views_layout/android/build.gradle +++ b/dev/benchmarks/platform_views_layout/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/benchmarks/platform_views_layout_hybrid_composition/android/build.gradle b/dev/benchmarks/platform_views_layout_hybrid_composition/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/benchmarks/platform_views_layout_hybrid_composition/android/build.gradle +++ b/dev/benchmarks/platform_views_layout_hybrid_composition/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/benchmarks/test_apps/stocks/android/build.gradle b/dev/benchmarks/test_apps/stocks/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/benchmarks/test_apps/stocks/android/build.gradle +++ b/dev/benchmarks/test_apps/stocks/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/abstract_method_smoke_test/android/build.gradle b/dev/integration_tests/abstract_method_smoke_test/android/build.gradle index 1a8a1b4a865..05c070104b6 100644 --- a/dev/integration_tests/abstract_method_smoke_test/android/build.gradle +++ b/dev/integration_tests/abstract_method_smoke_test/android/build.gradle @@ -7,12 +7,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -25,12 +19,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/android_custom_host_app/build.gradle b/dev/integration_tests/android_custom_host_app/build.gradle index 4615d7e50c9..211e34b9898 100644 --- a/dev/integration_tests/android_custom_host_app/build.gradle +++ b/dev/integration_tests/android_custom_host_app/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' @@ -22,12 +16,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/android_embedding_v2_smoke_test/android/build.gradle b/dev/integration_tests/android_embedding_v2_smoke_test/android/build.gradle index 1a8a1b4a865..05c070104b6 100644 --- a/dev/integration_tests/android_embedding_v2_smoke_test/android/build.gradle +++ b/dev/integration_tests/android_embedding_v2_smoke_test/android/build.gradle @@ -7,12 +7,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -25,12 +19,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/android_host_app_v2_embedding/build.gradle b/dev/integration_tests/android_host_app_v2_embedding/build.gradle index 4615d7e50c9..211e34b9898 100644 --- a/dev/integration_tests/android_host_app_v2_embedding/build.gradle +++ b/dev/integration_tests/android_host_app_v2_embedding/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' @@ -22,12 +16,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/android_semantics_testing/android/build.gradle b/dev/integration_tests/android_semantics_testing/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/android_semantics_testing/android/build.gradle +++ b/dev/integration_tests/android_semantics_testing/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/channels/android/build.gradle b/dev/integration_tests/channels/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/channels/android/build.gradle +++ b/dev/integration_tests/channels/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/external_ui/android/build.gradle b/dev/integration_tests/external_ui/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/external_ui/android/build.gradle +++ b/dev/integration_tests/external_ui/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/flavors/android/build.gradle b/dev/integration_tests/flavors/android/build.gradle index 774aac99909..75c1d329530 100644 --- a/dev/integration_tests/flavors/android/build.gradle +++ b/dev/integration_tests/flavors/android/build.gradle @@ -7,12 +7,6 @@ buildscript { google() mavenCentral() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -24,12 +18,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/flutter_gallery/android/build.gradle b/dev/integration_tests/flutter_gallery/android/build.gradle index 55f2ea5c503..b4cdd006ecf 100644 --- a/dev/integration_tests/flutter_gallery/android/build.gradle +++ b/dev/integration_tests/flutter_gallery/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } maven { url 'https://google.bintray.com/exoplayer/' } diff --git a/dev/integration_tests/gradle_deprecated_settings/android/build.gradle b/dev/integration_tests/gradle_deprecated_settings/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/gradle_deprecated_settings/android/build.gradle +++ b/dev/integration_tests/gradle_deprecated_settings/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/hybrid_android_views/android/build.gradle b/dev/integration_tests/hybrid_android_views/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/hybrid_android_views/android/build.gradle +++ b/dev/integration_tests/hybrid_android_views/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle b/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle index 4615d7e50c9..211e34b9898 100644 --- a/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle +++ b/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' @@ -22,12 +16,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/non_nullable/android/build.gradle b/dev/integration_tests/non_nullable/android/build.gradle index 1a8a1b4a865..05c070104b6 100644 --- a/dev/integration_tests/non_nullable/android/build.gradle +++ b/dev/integration_tests/non_nullable/android/build.gradle @@ -7,12 +7,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -25,12 +19,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/platform_interaction/android/build.gradle b/dev/integration_tests/platform_interaction/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/platform_interaction/android/build.gradle +++ b/dev/integration_tests/platform_interaction/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/release_smoke_test/android/build.gradle b/dev/integration_tests/release_smoke_test/android/build.gradle index 22e1e4953ac..846852223c2 100644 --- a/dev/integration_tests/release_smoke_test/android/build.gradle +++ b/dev/integration_tests/release_smoke_test/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -23,12 +17,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/integration_tests/ui/android/build.gradle b/dev/integration_tests/ui/android/build.gradle index 6f38d1f1882..833506bedda 100644 --- a/dev/integration_tests/ui/android/build.gradle +++ b/dev/integration_tests/ui/android/build.gradle @@ -6,12 +6,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -24,12 +18,6 @@ allprojects { google() mavenCentral() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/dev/manual_tests/android/build.gradle b/dev/manual_tests/android/build.gradle index 1a8a1b4a865..05c070104b6 100644 --- a/dev/manual_tests/android/build.gradle +++ b/dev/manual_tests/android/build.gradle @@ -7,12 +7,6 @@ buildscript { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } dependencies { @@ -25,12 +19,6 @@ allprojects { repositories { google() mavenCentral() - // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338 - jcenter { - content { - includeModule("org.jetbrains.trove4j", "trove4j") - } - } } } diff --git a/examples/flutter_view/android/build.gradle b/examples/flutter_view/android/build.gradle index e876513d457..846852223c2 100644 --- a/examples/flutter_view/android/build.gradle +++ b/examples/flutter_view/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/examples/hello_world/android/build.gradle b/examples/hello_world/android/build.gradle index e876513d457..846852223c2 100644 --- a/examples/hello_world/android/build.gradle +++ b/examples/hello_world/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/examples/image_list/android/build.gradle b/examples/image_list/android/build.gradle index e876513d457..846852223c2 100644 --- a/examples/image_list/android/build.gradle +++ b/examples/image_list/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/examples/layers/android/build.gradle b/examples/layers/android/build.gradle index e876513d457..846852223c2 100644 --- a/examples/layers/android/build.gradle +++ b/examples/layers/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/examples/platform_channel/android/build.gradle b/examples/platform_channel/android/build.gradle index e876513d457..846852223c2 100644 --- a/examples/platform_channel/android/build.gradle +++ b/examples/platform_channel/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/examples/platform_view/android/build.gradle b/examples/platform_view/android/build.gradle index e876513d457..846852223c2 100644 --- a/examples/platform_view/android/build.gradle +++ b/examples/platform_view/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/flutter_tools/gradle/flutter.gradle b/packages/flutter_tools/gradle/flutter.gradle index 3db040b967e..f3bb3a9a69b 100644 --- a/packages/flutter_tools/gradle/flutter.gradle +++ b/packages/flutter_tools/gradle/flutter.gradle @@ -25,7 +25,7 @@ import org.gradle.util.VersionNumber buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' diff --git a/packages/flutter_tools/gradle/resolve_dependencies.gradle b/packages/flutter_tools/gradle/resolve_dependencies.gradle index 508fb49e826..817b7306131 100644 --- a/packages/flutter_tools/gradle/resolve_dependencies.gradle +++ b/packages/flutter_tools/gradle/resolve_dependencies.gradle @@ -18,7 +18,7 @@ String storageUrl = System.getenv('FLUTTER_STORAGE_BASE_URL') ?: "https://storag repositories { google() - jcenter() + mavenCentral() maven { url "$storageUrl/download.flutter.io" } diff --git a/packages/flutter_tools/templates/app/android-java.tmpl/build.gradle b/packages/flutter_tools/templates/app/android-java.tmpl/build.gradle index 7fe1f1868e8..622ddc5c15e 100644 --- a/packages/flutter_tools/templates/app/android-java.tmpl/build.gradle +++ b/packages/flutter_tools/templates/app/android-java.tmpl/build.gradle @@ -1,7 +1,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -12,7 +12,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/flutter_tools/templates/app/android-kotlin.tmpl/build.gradle b/packages/flutter_tools/templates/app/android-kotlin.tmpl/build.gradle index 9b6ed06eb38..ed45c658850 100644 --- a/packages/flutter_tools/templates/app/android-kotlin.tmpl/build.gradle +++ b/packages/flutter_tools/templates/app/android-kotlin.tmpl/build.gradle @@ -2,7 +2,7 @@ buildscript { ext.kotlin_version = '1.3.50' repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -14,7 +14,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/flutter_tools/templates/module/android/gradle/build.gradle.copy.tmpl b/packages/flutter_tools/templates/module/android/gradle/build.gradle.copy.tmpl index 2316d6f0338..3bf7cc72b5e 100644 --- a/packages/flutter_tools/templates/module/android/gradle/build.gradle.copy.tmpl +++ b/packages/flutter_tools/templates/module/android/gradle/build.gradle.copy.tmpl @@ -3,7 +3,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -14,7 +14,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl b/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl index ead504b976b..a8dfc512b96 100644 --- a/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl +++ b/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl @@ -4,7 +4,7 @@ version '1.0' buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -15,7 +15,7 @@ buildscript { rootProject.allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl index 1be9c073619..ac94be4c3d0 100644 --- a/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl +++ b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl @@ -5,7 +5,7 @@ buildscript { ext.kotlin_version = '1.3.50' repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -17,7 +17,7 @@ buildscript { rootProject.allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart b/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart index 3c21fcb1f38..6abf02336ec 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart @@ -112,7 +112,7 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig { ext.kotlin_version = '1.3.50' repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -124,7 +124,7 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/integration_test/android/build.gradle b/packages/integration_test/android/build.gradle index a3e701b1c3b..96ad4d4faa5 100644 --- a/packages/integration_test/android/build.gradle +++ b/packages/integration_test/android/build.gradle @@ -8,7 +8,7 @@ version '1.0-SNAPSHOT' buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -19,7 +19,7 @@ buildscript { rootProject.allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/packages/integration_test/example/android/build.gradle b/packages/integration_test/example/android/build.gradle index e876513d457..846852223c2 100644 --- a/packages/integration_test/example/android/build.gradle +++ b/packages/integration_test/example/android/build.gradle @@ -5,7 +5,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } }