Route XBD Google Maven downloads through mirror - #12544
Open
jonathanpeppers wants to merge 1 commit into
Open
Conversation
Configure Azure Pipelines to expose the dotnet-public Maven repository to Xamarin.Build.Download, update tests to XBD 0.11.6, and directly pin consumers that would otherwise resolve older transitive versions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 488a70c4-d8c7-47d5-9bd7-841466fc30fb
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s build/test infrastructure to support routing eligible Google Maven downloads through the dnceng dotnet-public-maven mirror by (1) bumping the Xamarin.Build.Download test pin, (2) exposing XamarinBuildDownloadGoogleMavenRepository as a shared Azure Pipelines variable, and (3) directly pinning Xamarin.Build.Download in a Google Play Services-related test to avoid an older transitive version.
Changes:
- Update the test
Xamarin.Build.Downloadpin inKnownPackagesfrom0.11.4to0.11.6. - Add
XamarinBuildDownloadGoogleMavenRepositoryto the shared Azure Pipelines variables template, pointing at thedotnet-public-mavenfeed. - Explicitly add
KnownPackages.Xamarin_Build_DownloadtoDuplicateRJavaOutputpackage references to avoid relying on transitive resolution.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/KnownPackages.cs | Updates the pinned Xamarin.Build.Download version used by tests. |
| src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest2.cs | Explicitly pins Xamarin.Build.Download in a test project’s package set to avoid transitive version selection. |
| build-tools/automation/yaml-templates/variables.yaml | Adds a pipeline variable to route Google Maven downloads through the dnceng Maven mirror. |
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
XamarinBuildDownloadGoogleMavenRepositoryrepository-wide through the shared Azure Pipelines variables templatedotnet-public-mavenfeedThe XBD implementation only rewrites URLs beginning with
https://dl.google.com/dl/android/maven2/; Android SDK/NDK and partial ZIP URLs such asdl-ssl.google.com/android/repository/...remain unchanged.Validation
dotnet msbuildas$(XamarinBuildDownloadGoogleMavenRepository)xa-prep-tasksandXamarin.ProjectToolsPublication status
As of August 27, 2026, the dnceng
dotnet-publicNuGet feed lists Xamarin.Build.Download only through 0.11.5. Restore/CI is expected to remain blocked until 0.11.6 is published to that feed.Implementation reference: dotnet/android-libraries@4fe06d5