Gradleã®ææ°çãç°¡åã«ä½¿ãæ¹æ³
Gradleã®ææ°ã使ããã
Gradleã¯ç´ æ´ãããã«ããã¼ã«ã§ãã¤ã³ã¹ãã¼ã«ãç°¡åã§ããã§ããæé·ãã¯ããã®ã§ããã£ããä½ãGradleã®ãã¬ã³ããªã®ãããããªããªããã¨ãæãã§ããã¾ããGradleã®ãã°ãç´ã£ã¦ããå¯è½æ§ãèããã¨ææ°çã使ããããªãã¾ãã
ã¤ã¾ããåãä¸çªä½¿ã£ã¦ããGradleã®ãã¼ã¸ã§ã³ã¯masterãã©ã³ããªãã§ãããå®ã¯ç°¡åã«ä½¿ããã®ã§ãç´¹ä»ãã¾ãã
ææ°çãå©ç¨ããæºå
次ã®ãã¼ã«ãã¤ã³ã¹ãã¼ã«ããã¦ããåæã§ãã
- gvm / posh-gvm
- JDK8
- git
gvm install gradleã§gradleãã¤ã³ã¹ãã¼ã«ã§ãã¾ããåºæ¬çã«gradle.orgã§ãªãªã¼ã¹ããã¦ãããã®ã使ãã¾ããã§ããããã§ã¯æºè¶³ã§ããªãã§ããã¨ãããã¨ã§ã次ã®ã³ãã³ããå®è¡ãã¾ãããã
git clone https://github.com/gradle/gradle.git cd gradle sh ./gradlew install /path/to/gradle-master # ããã㯠gradlew.bat install /path/to/gradle-master gvm install gradle master-version /path/to/gradle-master gvm default gradle master-version gradle -v
ããã§ãããªãã®ç°å¢ã§ã¯gvmã§ææ°çã®Gradleã¨ãªãªã¼ã¹æ¸ã®Gradleãå©ç¨ãããã¨ãã§ãã¾ãï¼ï¼
ä¸è¡ãã¤è§£èª¬ãã¾ãããã
- git clone https://github.com/gradle/gradle.git
- Githubããgradleãã¯ãã¼ã³
- cd gradle
- ãã£ã¬ã¯ããªã移å
- sh ./gradlew install /path/to/gradle-master, gradlew.bat install /path/to/gradle-master
- gradleããã«ã gradleã¯gradlewrapperã¨ããæ©è½ã«ãã£ã¦ãgradleãã¤ã³ã¹ãã¼ã«ããã¦ããªãã¦ãgradleãå®è¡ãããã¨ãã§ãã¾ãã(å®è¡æã«å¿ è¦ãªgradleããã¦ã³ãã¼ããã¦ãã¦å©ç¨ãã)
- gvm install gradle master-version /path/to/gradle-master
- gvm install fooBarã¨ããã¨ãæ®æ®µã¯gvmã管çãã¦ãããã¼ã¸ã§ã³ã®ã¿ãã¤ã³ã¹ãã¼ã«ã§ãã¾ãããgvm install toolName customVersion toolpathã¨ãããã¨ã§ãä»»æã®ãã¼ã¸ã§ã³åã§ãã¼ã«ã«ã«ãããã¼ã«ãgvmã®ç®¡çé ä¸ã«è¿½å ã§ãã¾ãã
- gvm default gradle master-version
- ããã©ã«ãã§å©ç¨ããgradleã®ãã¼ã¸ã§ã³ãå ã«æå®ããmaster-versionã«ãã¾ãã
- gradle -v
- gradleã®ãã¼ã¸ã§ã³ã2.3.xxxx ãªã©ã¨åºããã¨ã確èªãã¾ãã
ã¾ã¨ã
Gradle masterãã©ã³ããå©ç¨ããããã«ãã«ããã¼ã«ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ããªãããgvmã§ãªãªã¼ã¹æ¸ã®ãã®ã¨ç°¡åã«åãæãããã¾ããåè¡çã«Gradleã使ãåãã¾ãããã
Gradleå¾¹åºå ¥é 次ä¸ä»£ãã«ããã¼ã«ã«ããèªåååºç¤ã®æ§ç¯
- ä½è : 綿å¼ç¢ç£¨,é æ±ä¿¡æ´,ææ¿å©,ä»äºåä¿¡
- åºç社/ã¡ã¼ã«ã¼: ç¿æ³³ç¤¾
- çºå£²æ¥: 2014/11/05
- ã¡ãã£ã¢: 大åæ¬
- ãã®ååãå«ãããã° (2件) ãè¦ã