From 1a8a02c9919fd0700abec055b277b9ec8e68135f Mon Sep 17 00:00:00 2001 From: jack-berg <34418638+jack-berg@users.noreply.github.com> Date: Wed, 14 Jun 2023 10:04:31 -0500 Subject: [PATCH] Try to improve build scan reliability (#5539) --- gradle.properties | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gradle.properties b/gradle.properties index 0b5e135ed3..eec3cefe1f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,3 +5,11 @@ org.gradle.priority=low # Gradle default is 256m which causes issues with our build - https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m + +# Try to reduce CI failures due to maven central flakiness +# in particular this has been a problem for maven-metadata.xml files, which are TTL'd quickly out of +# the gradle cache since they contain the latest versions available in maven central +systemProp.org.gradle.internal.http.connectionTimeout=120000 +systemProp.org.gradle.internal.http.socketTimeout=120000 +systemProp.org.gradle.internal.repository.max.retries=10 +systemProp.org.gradle.internal.repository.initial.backoff=500