title: IntelliJ HTTP-Proxy works but fails at gradle dependencies
body: <p>so currently at work I face the problem, that I cannot build projects, which use global dependencies. We use an auto-config proxy script, which I already set in the File->Settings->Appearance &amp; Behaviour->System Settings->HTTP Proxy and tested with the Check Connection-function.</p>
  
  <p>The check connection function is working for any arbitrary html and also for the needed gradle-file (jcenter.bintray.com/com/android/tools/build/gradle/2.0.0/gradle-2.1.0-javadoc.jar).</p>
  
  <p>For solutions I already tried to:</p>
  
  <ul>
  <li>set the Proxy Information into the gradle.properties </li>
  <li><p>tried to set http and/or https proxy settings</p>
  
  <pre><code>* systemProp.http(s).proxyHost=linktoproxyconfig.org  
  * systemProp.http(s).proxyPort=xxxx                 
  * systemProp.http(s).proxyUser=xxxx            
  * systemProp.http(s).proxyPassword=xxxx
  </code></pre></li>
  <li><p>changing the repository direction (jcenter() vs. jcenter{url <a href="http://jcenter.bintray.com" rel="noreferrer">http://jcenter.bintray.com</a>}</p></li>
  </ul>
  
  <p>I am aware of the fact, that one can work offline, downloading the gradle locally. But to prevent the additional maintenance of gradle versions on different machines I would like to restrain from the work offline option.</p>
  
  <p>Edit: Maybe I should also add the error message:<br>
  <code>Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.</code></p>
  
  <p>I would be most grateful if someone has an idea about a solution.</p>