Adrian Ber
Adrian Ber

Reputation: 21370

Gradle proxy settings

How can I set Gradle to use the system proxy, instead of defining a specific one?

A specific host can be easily defined using gradle.properties, but I want the one used by IE/Chrome to be used. Is it possible?

Upvotes: 3

Views: 1185

Answers (2)

Joman68
Joman68

Reputation: 2850

Instead of specifying the useSystemProxies setting on the command line, you can set it in your gradle.properties file:

systemProp.java.net.useSystemProxies=true

Upvotes: 0

lance-java
lance-java

Reputation: 27976

Never tried it myself but you could try setting the java.net.useSystemProxies system property

eg: gradlew -Djava.net.useSystemProxies=true taskX

Upvotes: 1

Related Questions