[GRADLE-1556] Gradle does not support proxy authentication using user/password system properties Created: 16/May/11  Updated: 25/Jun/13  Resolved: 08/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-3
Fix Version/s: 1.0-milestone-8

Type: Bug
Reporter: Daniel Beck Assignee: Daz DeBoer
Resolution: Fixed Votes: 2

Attachments: File gradle-proxy-support.diff    
Issue Links:
Duplicate
Duplicates GRADLE-1679 gradlew does not support HTTP proxy a... Resolved

 Description   

According to the documentation, Gradle supports proxy authentication using the system properties http.proxyUser and http.proxyPassword. These are nonstandard (also see the Java documentation linked from the Gradle docs) and need to be supported explicitly by any application that wishes to support proxy authentication.

Setting these values currently has the same results as not doing so, e.g. 407 Proxy Authentication Required.

Attached is a patch to core that adds support for these two system properties. As I am not familiar with the Gradle code base I am submitting this as an issue instead of a pull request on Github.



 Comments   
Comment by Rene Enriquez [ 25/Jun/13 ]

I solved adding proxy parameters of this way
./gradlew -Dhttp.proxyHost=ip_proxy -Dhttp.proxyPort=port_proxy clean build

Generated at Wed Jun 30 11:58:31 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.