Sergey Chernov
11/11/2024, 3:15 PMCaused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD '<https://repo-maven.acme.com/repository/public/com/acme/dep/.../.jar>'.
at org.gradle.internal.resource.transport.http.HttpClientHelper.createHttpRequestException(HttpClientHelper.java:124)
•••
Caused by: java.net.UnknownHostException: repo-maven.acme.com
at java.net.InetAddress$CachedAddresses.get(InetAddress.java:801)
The problem is with DNS resolving. Is there a way to make auto-retries here?
I've discovered this topic a bit and found this fix: https://github.com/gradle/gradle/commit/156b5ebd00971cc7fd6bd94420f0fa63b5488e8d (mentioned here https://github.com/gradle/gradle/issues/4629) but I'm not quite sure it's helping for our case. Also it looks like there is no way to pass parameters to Apache HTTP client 4 via system properties.
Some other info: in the Gradle Enterprise (on-prem) Network activity I can see that there are a lot of successfully loaded artifacts from the repo and just few failed.