The function was added to Gradle here: https://github.com/gradle/gradle/pull/3041
You can increase the wait time with 2 properties:
./gradlew build -Dhttp.socketTimeout=60000 -Dhttp.connectionTimeout=60000
As Sue C commented, if you are using Gradle 4.10.2 or later, use the following properties :
./gradlew build -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.http.connectionTimeout=60000
Tomas bjerre
source share