출처
https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_environment_variables
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
별도로 gradle_user_home을 지정하지 않은 경우
- $USER_HOME/.gradle
window: %HOMEPATH%/.gradle
linux : $HOME/.gradle
실행시 gradle_user_home 설정
gradle -Dgradle.user.home=/aaa/ddd/bbb
환경 변수로 설정
window : set GRADLE_USER_HOME=c:/util/gradle/home/5.5
linux : export GRADLE_USER_HOME=/usr/apps/gradle_home
매번 환경변수 지정이 어려우니 아래와 같이 시스템에 정의를 해도 된다.
윈도우 : 제어판 -> 시스템 (windowKey + pauseBreak) -> 고급 시스템 설정 -> 환경변수 에서
변수로 GRADLE_USER_HOME 설정
linux : .bash_profile 에 변수 설정
echo "GRADLE_USER_HOME=/usr/apps" | tee -a ~/.bash_profile
'java' 카테고리의 다른 글
logback 설정 정보 확인하기 (0) | 2020.06.10 |
---|---|
스프링부트 로그레벨 변경 (0) | 2020.05.20 |
Springboot change timezone (0) | 2020.04.21 |
spring boot cannot find main class (0) | 2020.03.18 |
spring boot lazy-loading 사용시 에러 (0) | 2020.01.30 |