SocketTimeoutException when running `./gradlew refreshVersions`
- [x] I have read the guidelines for submitting issues
🐛 Describe the bug
Running refreshVersions fails because of a SocketTimeoutException.
⚠️ Current behavior
The task fails to complete successfully.
<-- HTTP FAILED: java.net.SocketTimeoutException: timeout
> Task :refreshVersions FAILED
FAILURE: Build failed with an exception.
The error message doesn't indicate which request failed, but I think it's this one: https://plugins.gradle.org/m2/de/fayard/refreshVersions/de.fayard.refreshVersions.gradle.plugin/maven-metadata.xml
✅ Expected behavior
The task should complete without failure
💣 Steps to reproduce
I tried using refresh versions 0.20.0 and 0.11.0 (same issue)
- Run
./gradlew refreshVersionsfrom probably any existing project, or create a brand new one - The task will fail
📱 Tech info
I am also affected, looks like https://plugins.gradle.org/m2/ outage
I think refreshVersions should support such scenarios and allow to update dependencies which are hosted on unaffected servers. Obviously there should be clear messaging that it wasn't able to update such and such dependencies due to network/server errors.
Edit: Gradle Incident Report https://status.gradle.com/incidents/ndfqcnmqc8n7
Making refreshVersions able to work partially when some repos are timing out, or failing in other ways is planned, I'll keep you updated.
Relates to #468