Automattic / Automattic/simplenote-android

Upgrade Gradle version, or find other solution for `tumblr-metal` failing to download Gradle

Open
#1,706 1 comment 0 reactions 0 assignees View on GitHub
tooling
Dominant language
Java
Stars
1.9k
Forks
318
Avg merge
15h 23m
Merged PRs (30d)
5

Description

As part of building the app in CI, we run `./gradlew`.

Since moving to `tumblr-metal` as part of the ReleaseV2 and release-in-CI migration, see paaHJt-6ps-p2, running `./gradlew` fails with

```
Downloading https://services.gradle.org/distributions/gradle-8.2-bin.zip

Exception in thread "main" java.io.IOException: Downloading from https://services.gradle.org/distributions/gradle-8.2-bin.zip failed: timeout
```

[Example](https://buildkite.com/automattic/simplenote-android/builds/418#0192b2f6-f5cc-4d8f-9e02-9dda8c3a9b69):
![Image](https://github.com/user-attachments/assets/93d098b9-08a5-45e1-a2d9-83f6d82fdd8e)

We discussed, p1726719736370609-slack-C020Q0Z579V, a few options to solve this issue. The most promising being:

- Upgrading Gradle in Simplenote Android to a version that `tumblr-metal` supports. _This seems like the best option as presumably `tumblr-metal` support recent versions which would be beneficial to adopt regardless of CI limitations._
- Pass a proxy config to Gradle

In the meantime, https://github.com/Automattic/simplenote-android/pull/1705 has a workaround.

Contributor guide

Open the contributing guide

Research direction

Start with ./gradlew and the project configuration that selects Gradle 8.2, then review tumblr-metal's supported Gradle versions and the CI failure example. Compare the upgrade and proxy options, including the workaround in pull request #1705. Done means the Android CI build runs ./gradlew without timing out while downloading Gradle.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.