반응형
gradle proxy 관련 공식 문서
docs.gradle.org/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy
Build Environment
Configuring an HTTP or HTTPS proxy (for downloading dependencies, for example) is done via standard JVM system properties. These properties can be set directly in the build script; for example, setting the HTTP proxy host would be done with System.setPrope
docs.gradle.org
java proxy : docs.oracle.com/javase/7/docs/technotes/guides/net/properties.html
gradlew 실행시 System property 설정
gradlew bootJar \
-Dhttp.proxyHost=192.168.1.230 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=192.168.0.5
gradle에서 192.168.0.5 ip의 호출은 proxy를 통하지 않도록 설정한다.
반응형
'linux' 카테고리의 다른 글
ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic) (0) | 2022.06.28 |
---|---|
nginx location 정규식 적용 (1) | 2021.01.14 |
bash shell 실행 명령어 확인하기 (0) | 2020.08.20 |
nginx rewrite 설정 (0) | 2020.06.12 |
diff를 이용한 파일 비교 (0) | 2020.05.08 |