github - Multiple Proxy in Gradle -
currently developing small poc. project in github. want simultaneously work home pc , office pc. office network runs behind proxy. have mentioned proxy configuration in gradle.properties file.
now while running home pc gradle failed download dependencies due proxy. home pc doesn't have proxy configuration.
i have workaround of issue commenting out proxy configuration in properties file. but there permanent solutions application automatically detect , choose corresponding proxy settings.
if these different machines, can declare proxy settings in per-user properties file (user_home/.gradle/gradle.properties
). if it's same machine, can use tool switches out user_home/.gradle/gradle.properties
depending on current location.
Comments
Post a Comment