Make script aware of 407 when downloading gradle
Metadata
Current evaluation
Merged PR #1490 added authenticated-proxy support to the Gradle plugin, fixing downloads that failed with HTTP 407.
Resolution: closed resolved
Reason: PR canonical/snapcraft#1490 was merged as commit 4f1b5316e, adding authenticated-proxy support to the Gradle and Ant plugins and explicitly resolving #1485.
Evaluated by: mr-cal-bot
No scores available.
Issue body
builds.snapcraft.io rejects downloading gradle.
```
Downloading https://services.gradle.org/distributions/gradle-4.0.2-bin.zip
Exception in thread "main" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
```
Source: https://build.snapcraft.io/user/JabRef/jabref/67152
An issue has been submitted - see https://github.com/canonical-websites/build.snapcraft.io/issues/918. I don't know, if this will be fixed or if it is easier to quickyl adapt `gradle.py`.
I assume, gradle.py has to be adapted accordingly? https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/gradle.py#L88; if gradlew exists, execute it. If that fails with proxy 407 error (grepping stdout?), execute gradle
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1490 added authenticated-proxy support to the Gradle plugin, fixing downloads that failed with HTTP 407. | |
| stealth/space-bunny-alpha | — | closed resolved | Closed as stale, but the Gradle proxy-authentication failure was fixed by merged PR #1490 (commit 4f1b5316e), adding authenticated proxy support. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after no discussion or follow-up; no 407-specific change is recorded. Later PR #1024 added Gradle wrapper detection. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The reported HTTP 407 proxy error during Gradle downloads was not addressed, and the issue was abandoned due to inactivity and zero comments. | |
| qwen/qwen3.6-35b-a3b | — | — | Gradle download failures caused by 407 proxy errors on Snapcraft builds were closed without resolution. No comments or code changes were made, indicating the request was abandoned due to inactivity and age. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Suggested adapting gradle.py to handle HTTP 407 proxy errors during Gradle downloads, but received no comments or implementation and was closed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution or comments. The suggested gradle.py proxy fallback was never implemented, leaving the request abandoned. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#1490
(confidence 99%)
Merged change implementing authenticated-proxy support for Gradle downloads.
Related issues
No related issues found above the similarity threshold.