Caching remote scripts being applied by: apply from: "$url/script.gradle"


We have a bunch of shared configuration files that are being applied via: “apply from: $url/foo.gradle”. Is there anyway of caching these so that --offline would not try to access them? This is for when you’re away from the network and not on VPN.