title: How can I make gradle deal with multiple proxies?
body: <p>I work on a project where there are <strong>multiple nexus registries behind different proxies</strong> :</p>
  
  <p><a href="https://i.stack.imgur.com/x28Wv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x28Wv.png" alt="current setup"></a></p>
  
  <p><strong>How can I make sure that Gradle (or any repository related tool, such as NPM, maven, etc) can handle 3+ differents proxies at the same time to reach multiple Nexus instances ?</strong></p>
  
  <p>Until now, we were using a workaround : 1 nexus was accessed through HTTP proxy and 1 through HTTPS proxy. But now, we have 3 proxies to handle !</p>
  
  <p>I think that it must be possible to add a machine (a squid instance ?) which would redirect proxy requests to the correct proxy, based on the domain name :</p>
  
  <p><a href="https://i.stack.imgur.com/mnFq8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mnFq8.png" alt="target setup"></a></p>
  
  <p>I'm not used to Squid and I still not managed to achieve this. <strong>Can anyone confirm if this is possible (or not) using Squid ? Does anyone would have another solution to suggest ?</strong></p>
  
  <p>Just for the background story, this network setting is due to multiple partner companies being involved in the project. We have access to each company Nexus through dedicated VPN and proxies.</p>