Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7df4cbd3 authored by Jackeagle's avatar Jackeagle
Browse files

gradle: Increase HTTP and Gradle internal timeouts, and set retry parameters

- Increased HTTP connection and socket timeouts to 10 minutes for both system and Gradle internal properties.
- Set initial backoff time for Gradle internal repository requests to 500 milliseconds.
- Set maximum number of retries for Gradle internal repository requests to 10.

* This is to avoid build failures with this

   > Could not download asm-analysis.jar (org.ow2.asm:asm-analysis:8.0.1)
      > Could not get resource 'https://plugins.gradle.org/m2/org/ow2/asm/asm-analysis/8.0.1/asm-analysis-8.0.1.jar'.
         > Could not GET 'https://plugins.gradle.org/m2/org/ow2/asm/asm-analysis/8.0.1/asm-analysis-8.0.1.jar

'.
            > Read timed out

Signed-off-by: default avatarJackeagle <jackeagle102@gmail.com>
parent bf73c981
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -20,3 +20,21 @@ systemProp.http.nonProxyHosts=*.jitpack.io, *.maven.org
systemProp.https.proxyHost=fodev.org
systemProp.https.proxyPort=8118
systemProp.https.nonProxyHosts=*.jitpack.io, *.maven.org

# Increase HTTP connection timeout to 10 minutes
systemProp.http.connectionTimeout=600000

# Increase HTTP socket timeout to 10 minutes
systemProp.http.socketTimeout=600000

# Increase Gradle internal HTTP connection timeout to 10 minutes
systemProp.org.gradle.internal.http.connectionTimeout=600000

# Increase Gradle internal HTTP socket timeout to 10 minutes
systemProp.org.gradle.internal.http.socketTimeout=600000

# Set initial backoff time for Gradle internal repository requests to 500 milliseconds
systemProp.org.gradle.internal.repository.initial.backoff=500

# Set maximum number of retries for Gradle internal repository requests to 10
systemProp.org.gradle.internal.repository.max.retries=10