티스토리 뷰



[Gradle UserGuide 도전기] 4. Installing Gradle


  4.1. Prequisites


  1) JDK 버전이 6이상이어야 함

  2) JAVA_HOME 환경변수 셋팅

  4.2. Download


  사이트 주소 : https://www.gradle.org/


  4.3. Unpacking


  ZIP파일 풀자. 내용물은 다음과 같다.


The Gradle binaries.

The user guide (HTML and PDF).

The DSL reference guide.

The API documentation (Javadoc and Groovydoc).

Extensive samples, including the examples referenced in the user guide, along with some complete and more

complex builds you can use as a starting point for your own build.

The binary sources. This is for reference only. If you want to build Gradle you need to download the source

distribution or checkout the sources from the source repository. See the Gradle web site for details.


  4.4. Environment variables


  환경변수 설정해야 함. GRADLE_HOME에 압축을 푼 폴더를 셋팅하고 PATH에 GRADLE_HOME/bin을 넣어줘야 함.






  4.5. Running and testing your installation


  gradle 커맨드로 실행시킬 수 있음.


  제대로 깔렸는지 확인하고 싶으면 gradle -v를 치면 됨. 


이미 깔고 난 후에 찍은거라 다를 수도 있음.



  4.6. JVM options


  Gradle을 실행에서 GRADLE_OPTS 혹은 JAVA_OPTS 환경변수를 이용해서 설정을 바꿀 수 있습니다. 이 변수는 gradle 혹은 gradlew 스크립트의 시작 부분에서 설정할수 있습니다.


gradle 스크립트 내부

'Dev Story > Gradle' 카테고리의 다른 글

[Gradle 도전기] 6. Build Script Basics  (0) 2014.12.25
[Gradle 도전기] 5. Troubleshooting  (0) 2014.12.25
[Gradle 도전기] 3. Tutorials  (0) 2014.12.25
[Gradle 도전기] 2. Overview  (1) 2014.12.25
[Gradle 도전기] 1. Introduction  (6) 2014.12.25
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함