This is an automated email from the ASF dual-hosted git repository.
yuqi1129 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 5828967b30 [MINOR] build: Allow longer backoff for rate-limited Gradle
dependency resolution (#15125)
5828967b30 is described below
commit 5828967b30cdd6c51ac765cf05fb3dacd3826d8f
Author: Qi Yu <[email protected]>
AuthorDate: Thu Nov 19 19:32:58 2026 +0800
[MINOR] build: Allow longer backoff for rate-limited Gradle dependency
resolution (#15125)
### What changes were proposed in this pull request?
Configure Gradle to make up to five dependency resolution attempts, with
backoff intervals of 5, 10, 20, and 40 seconds.
### Why are the changes needed?
Maven Central can return HTTP 429 while Gradle resolves the Foojay
settings plugin’s Gson dependency. Gradle 8.2 exhausts its default
retries after about three seconds, causing CI to fail before any build
tasks run.
### Does this PR introduce any user-facing change?
Local and CI builds can wait up to 75 seconds between the first and last
attempts when a dependency repository keeps rate-limiting requests.
### How was this patch tested?
Ran Gradle 8.2 with Foojay 0.7.0 and Gson 2.9.1 against a local Maven
repository. The build recovered on the fourth request after three HTTP
429 responses. Persistent 429s stopped after five attempts, and a 404
made one request.
---
gradle.properties | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gradle.properties b/gradle.properties
index fd130dca37..da6f6c587d 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -28,6 +28,11 @@ org.gradle.java.installations.auto-detect=true
systemProp.org.gradle.internal.http.connectionTimeout=300000
systemProp.org.gradle.internal.http.socketTimeout=300000
+# Give rate-limited Maven repositories time to recover, including during
settings plugin resolution.
+# Gradle 8.2 doubles this delay between attempts (5, 10, 20, 40 seconds).
+systemProp.org.gradle.internal.repository.max.tentatives=5
+systemProp.org.gradle.internal.repository.initial.backoff=5000
+
# version that is going to be updated automatically by releases
version = 2.0.0-SNAPSHOT