Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • A project specific file that is checked into GIT is not the proper place for personal proxy settings, especially not for my userid and password. But even the proxy host and port will be different depending on what machine I'm working on. What is the correct solution? Where do I place them IDE specific, not project specific? Commented Sep 25, 2015 at 14:04
  • 2
    You can have a gradle.properties file outside the project in your gradle user home directory (defined by the GRADLE_USER_HOME environment variable). You can also pass properties on the command line via -Dprop=value. More info here Commented Sep 25, 2015 at 14:09
  • Could you maybe add that into your answer/solution? That should be the preferred place for those settings. Only in exotic cases, you want to have your proxy settings to be checked in with your project files. Commented Sep 25, 2015 at 14:38
  • Along with http proxy, add https proxy details also. In my network the parameters for both protocols are same. If I give only http, it is not working. I copied all the lines and made it to https, it worked. Commented Dec 29, 2015 at 12:00
  • How can we pass proxyUser and password by argument ? i dont want to user globle gradle.propaerties file. Commented May 7, 2020 at 7:02