When I use
configurations.all { resolutionStrategy.cacheChangingModulesFor 1, 'MINUTES' }
and I have defined a repository (host), which is currently not available, I get a build failure. Is there a way to configure the resolution strategy to use the already downloaded dependency (if available) when the host is not available and only throw a build exception when the dependency is missing and the host too? In my case i am only connected to the host when I am connected to the network of my company but when I am working from home and I already downloaded the dependency it would be nice to have that feature.
Well I know, I can use groovy to define a switch which just turns off the resolution strategy but it would be nice to have it out of the box or by setting a flag.