Closed willis7 closed 9 years ago
Ok, I found a workaround. Adding the following to a command line call to gradle will resolve the issue:
-Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort
Note you have to be sure to write https
and not just http
like most articles suggest.
An example:
gradle deploy -Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort
this can also be added to the gradlew/gradlew.bat files too:
set DEFAULT_JVM_OPTS=-Dhttps.proxyHost=proxyHost -Dhttps.proxyPort=proxyPort
Thank you for this information.
When working within the confines of a corporate network I have found that the network proxy blocks the plugin, and as a result causes a connection timeout. I have proven this is not an issue when using a dirty network.
I will make some tweaks in the plugin and report back any findings. This resource seems to be particularly interesting and could possibly be applied to HttpUtils.