in gradle, how can I setup that I can pass to my proxy server demanding information such as in ANT -Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=8080 -Dhttp.proxyUser=C770 -Dhttp.proxyPassword=gagapwd -Dhttp.auth.preference=Basic
defining that for ANT and MAVEN and JSVN works, tested today. doing so for gradel does not at all.
does gradle somehow handle this by itself? if yes, then where can I find a little little reference to just a word "proxy" in the source code of gradle? I couldnt find any such words. can someone please explain?
I was directed onnce in a e-mail by a gralde crack or the like to setup under gradle.properties the following systemProp.http.proxyHost=myproxyserver.com systemProp.http.proxyport=8080 systemProp.http.proxyUser=C770 systemProp.http.proxyPassword=orbxorbx systemProp.http.nonProxyHosts=localhost systemProp.http.auth.preference=Basic
both setups have absolute no effect - I check it with a WireShark - and guess I know why: because some times in the past I have svn checked out as usually my svnkit; then on a bad day, the maven pom and the ant build where gone; to be replaced with something better. gradle. Since the gradle.bat, how ever you trim it, does not work behind my proxyserver, does not pass any of the informations given as said above to the wire, I feel very sad for gardle. It is not what I need to start beleaving about gradle. Also - I tried to download lates gradle kits. the -all and -bin kit versions are delivering my zip archives whith unexpected end of file; result ; unable to unzip it. while the gradle-src kit comes down real smart. What is up with gradle today?
Josef - very sad about that MVN and ANT have been taken out from svnkit project to be replaced by something which does not work after doing an svn update to an existing long lasting project.
I got this to work by setting the appropriate options in the JAVA_OPTS environment variable. Assuming your in windows entering something like this in the command prompt should do the trick.
set JAVA_OPTS=-Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080