diff --git a/gradle.properties b/gradle.properties index 6e873730e0bc..963ef33e6ec6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -27,3 +27,11 @@ systemProp.org.gradle.kotlin.dsl.precompiled.accessors.strict=true # Workaround https://youtrack.jetbrains.com/issue/KT-34862 kotlin.incremental=false + +# 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