Repository navigation
Conversation
Removes unused `ARTIFACT_HUB_REPOSITORY` repository configuration, `com.google.cloud.artifactregistry.gradle-plugin` plugin declarations, associated `#gradle-structure` documentation comments, and the corresponding `GradleValidator` checks and unit tests now that `ARTIFACT_HUB_REPOSITORY` is being removed from `flutter/recipes` (https://flutter-review.googlesource.com/c/recipes/+/87660). Part of flutter/flutter#193719
|
Adding Note: this check only fired because |
|
@gmackall Is this also a fix for the |
This is just cleanup after the actual fix, which was |
There was a problem hiding this comment.
Code Review
This pull request removes the Artifact Hub repository configuration and the Google Cloud Artifact Registry Gradle plugin from all example Android projects across the repository. It also removes the Artifact Hub validation logic from the Gradle validator tool and deletes the corresponding unit tests. There are no review comments, so I have no feedback to provide.
|
One other thing artifact hub did was scan our dependencies for security issues and stop vending those binaries. |
Removes
ARTIFACT_HUB_REPOSITORYrepository configuration,com.google.cloud.artifactregistry.gradle-pluginplugin declarations, and the correspondingGradleValidatorchecks and tests now thatARTIFACT_HUB_REPOSITORYis being removed fromflutter/recipesin https://flutter-review.googlesource.com/c/recipes/+/87660.Summary of Changes
*/android/build.gradle.kts(44 underpackages/, 1 underthird_party/packages/flutter_svg): removed theARTIFACT_HUB_REPOSITORYenvironment lookup,println("Using artifact hub"),maven { url = uri(artifactRepoUrl) }block, and#gradle-structurecomment; preservedgoogle()andmavenCentral().*/android/settings.gradle.kts: removedid("com.google.cloud.artifactregistry.gradle-plugin") version "2.2.1"and the#gradle-structurecomment..ci/legacy_project/all_packages/android/settings.gradle: removed the leftover#gradle-structurecomment.script/tool/lib/src/validators/gradle_validator.dart&script/tool/test/validate_command_gradle_test.dart: removed the Artifact Hub validator constants, checks, and tests while keeping Kotlin version and javac lint validations intact (and preserving explicitsettings.gradle.ktsvalidation coverage in the Kotlin version check tests).Context
ARTIFACT_HUB_REPOSITORYwas originally added in 2023 (flutter/flutter#120119) before Android Swarming bots had a persistentgradlenamed cache. The configured mirror has been the direct source of intermittent401,404(JAR), and429failures influtter/packagesAndroid CI (see https://flutter-review.googlesource.com/c/recipes/+/87660 for the 6-month failure breakdown and in-repoandroid_build_all_packagescomparison). Once https://flutter-review.googlesource.com/c/recipes/+/87660 lands, this configuration is dead code; removing it also drops the extracom.google.cloud.artifactregistry.gradle-pluginplugin dependency from every example app.Part of flutter/flutter#193719
Related: flutter/flutter#120119
Pre-Review Checklist
[shared_preferences]///).Footnotes
Example-only Android Gradle CI scaffolding removal +
script/toolvalidator cleanup (no published package library code changes); updatedscript/toolunit tests (validate_command_gradle_test.dart). ↩ ↩2