UrlRemoteFetcher
class UrlRemoteFetcher(connectTimeoutMillis: Int = DEFAULT_CONNECT_TIMEOUT_MILLIS, readTimeoutMillis: Int = DEFAULT_READ_TIMEOUT_MILLIS) : RemoteFetcher
RemoteFetcher that downloads content by opening a URL connection with finite timeouts, so an unreachable or stalled server fails the fetch instead of hanging a compilation. A FileNotFoundException, which the JDK raises both for missing local files and for HTTP 404 responses, is reported as RemoteFetchException.NotFound; any other I/O or URL failure as RemoteFetchException.
Parameters
connectTimeoutMillis
maximum time to establish the connection
readTimeoutMillis
maximum time to wait for data once connected