[ci] Stop lint Maven Central traffic - #1526
Merged
Merged
Conversation
Disable lint's NewerVersionAvailable check only in CI because AGP bypasses configured Gradle repositories and contacts repo1.maven.org directly. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR prevents Android Gradle Plugin (AGP) 8.12 lint from making direct Maven Central (repo1.maven.org) network calls during CI by conditionally disabling the NewerVersionAvailable lint check when RUNNINGONCI=true, while preserving the advisory for local developer builds.
Changes:
- Add
android { lint { ... } }configuration to disableNewerVersionAvailableonly whenRUNNINGONCI=true. - Apply the same conditional lint configuration across five Gradle modules (Play extensions + Material extensions).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| source/com.google.android.play/feature.delivery.extensions/extensions-aar/build.gradle | Conditionally disables NewerVersionAvailable lint check in CI to stop Maven Central traffic. |
| source/com.google.android.play/core.extensions/extensions-aar/build.gradle | Extends existing lint { baseline = ... } config to also disable NewerVersionAvailable on CI. |
| source/com.google.android.play/asset.delivery.extensions/extensions-aar/build.gradle | Conditionally disables NewerVersionAvailable lint check in CI to stop Maven Central traffic. |
| source/com.google.android.material/material.extensions/extensions-aar/build.gradle | Conditionally disables NewerVersionAvailable lint check in CI to stop Maven Central traffic. |
| source/com.google.android.material/material.extensions/app/build.gradle | Conditionally disables NewerVersionAvailable lint check in CI to stop Maven Central traffic. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
jonathanpeppers
enabled auto-merge (squash)
August 18, 2026 19:18
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Aug 18, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
The lint advisory is disabled only during CI, stopping Maven Central traffic while preserving local developer behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGP 8.12 lint's
NewerVersionAvailablecheck bypasses configured Gradle repositories and contactsrepo1.maven.orgdirectly, leaving five Maven Central requests in every CI build.Disable that networked advisory only when
RUNNINGONCI=truein the five Gradle modules. Local developer builds retain the version check, while CI dependency resolution remains routed throughdotnet-public-maven.Validation
buildcompleted for all four Gradle roots with a fresh Gradle cachepkgs.dev.azure.comrepo1.maven.orgrequestsRUNNINGONCIunset still made the expected lint metadata requests