Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

http proxy Ineffective #87

Closed
midstr opened this issue Mar 26, 2015 · 5 comments
Closed

http proxy Ineffective #87

midstr opened this issue Mar 26, 2015 · 5 comments

Comments

@midstr
Copy link

midstr commented Mar 26, 2015

11

i do like the Screenshot, but it lost my jvm httproxy options in daemon log ,and i can't download any jar...:

11:29:21.641 [INFO] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=eae78d3c-4665-45c1-85f4-a680227d3a48,javaHome=C:\Program Files\Java\jdk1.7.0_75,daemonRegistryDir=D:\gradle-repos\daemon,pid=5112,idleTimeout=10800000,daemonOpts=-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]

@midstr
Copy link
Author

midstr commented Mar 26, 2015

22

@paulvi
Copy link
Contributor

paulvi commented Mar 26, 2015

Did it work from command line?

by the way, why not to put into gradle.properties

like

systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=3213
systemProp.http.nonProxyHosts=fun.tv|localhost
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=3213
systemProp.https.nonProxyHosts=fun.tv|localhost

See also http://stackoverflow.com/questions/5991194/gradle-proxy-configuration
and http://www.nodeclipse.org/projects/gradle/

Also Eclipse has Preferences -> General -> Network Connections preferences where proxy also can be configured. But I can't tell if it will be applied with Gradle IDE

@midstr
Copy link
Author

midstr commented Mar 27, 2015

3ks.
I think i find the Issue: the default maven repository url is "https://mvnrepository.com/", my proxy didn't support https..

@midstr midstr closed this as completed Mar 27, 2015
@paulvi
Copy link
Contributor

paulvi commented Mar 27, 2015

Is proxy.tencent.com free to use?

@midstr
Copy link
Author

midstr commented Mar 28, 2015

yes,it's my company's inner proxy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants