Skip to content

Handle synthetic AGP marker JARs in the local Google Maven proxy - #20

Merged
XRDOGE-XRPL merged 1 commit into
copilot/behebe-dns-aufloesungsproblemfrom
copilot/fix-github-actions-job-again
Sep 13, 2026
Merged

XRDOGE-XRPL merged 1 commit into
copilot/behebe-dns-aufloesungsproblemfrom
copilot/fix-github-actions-job-again

Conversation

Copilot AI commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Copilot setup was still failing during Gradle warmup because the local Google Maven proxy only synthesized the com.android.application.gradle.plugin POM. Gradle also requests the marker JAR, and that request was falling through to blocked external hosts, aborting resolution of com.android.tools.build:gradle:8.5.2.

  • Root cause

    • The proxy handled the AGP application marker POM but not the corresponding marker JAR.
    • Marker JAR requests therefore reached the normal mirror path and attempted external Google Maven access.
  • Change

    • Extend the synthetic response path in tools/google_maven_proxy.py to also return an empty JAR for com.android.application.gradle.plugin.
    • Keep the existing synthetic POM behavior unchanged so Gradle still resolves the real dependency from com.android.tools.build:gradle.
  • Effect

    • AGP marker resolution stays fully local during Copilot setup warmup.
    • Blocked DNS/network access to dl.google.com no longer breaks plugin classpath resolution for this marker.
  • Illustrative snippet

    if request_path.endswith(".pom"):
        return "application/xml; charset=utf-8", pom
    
    if request_path.endswith(".jar"):
        return "application/java-archive", MirrorHandler.EMPTY_JAR_BYTES

@XRDOGE-XRPL
XRDOGE-XRPL added this pull request to stack #21 September 13, 2026 00:07
Base automatically changed from copilot/fix-github-actions-job to copilot/behebe-dns-aufloesungsproblem September 13, 2026 00:10
Co-authored-by: XRDOGE-XRPL <166251416+XRDOGE-XRPL@users.noreply.github.com>
@XRDOGE-XRPL
XRDOGE-XRPL force-pushed the copilot/fix-github-actions-job-again branch from fdb3268 to 54bcc5b Compare September 13, 2026 00:10
@XRDOGE-XRPL
XRDOGE-XRPL marked this pull request as ready for review September 13, 2026 00:10
@XRDOGE-XRPL
XRDOGE-XRPL merged commit 34f16da into copilot/behebe-dns-aufloesungsproblem Sep 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants