ä»å¹´ãæ®ããããã¨ãªãã¾ããããä»å¹´æåã¨ãªãã¨ã³ããªã¼ã¯ã G*ã¢ããã³ãã«ã¬ã³ãã¼ 2014ãã®ç¬¬24æ¥ç®ã®è¨äºã§ãã æ©ããã®ã§ Gradle ãã¯ããã¦ãããã¾ããªãï¼å¹´ãçµã¨ãã¨ãã¦ãã¾ãã ä»å¹´ã¯é·å¹´ã®æ²é¡ã§ãã£ãæ¥åã¸ã®å°å ¥ã«ãæåããé常ã«å â¦
ä»å¹´ãæ®ããããã¨ãªãã¾ããããä»å¹´æåã¨ãªãã¨ã³ããªã¼ã¯ ãG* Advent Calendar 2013ãã®12æ¥ç®ã§ãã çãã Gradle 使ã£ã¦ã¾ããï¼ èªåã¯ã¨è¨ãã¨â¦ æ®å¿µãªãããä»å¹´ãæ¥åã¸ã®æ¬æ ¼å°å ¥ã¯ã§ããªãã£ãã®ã§ã æ¥å¹´ããã¯å°å ¥ãããã¨ããææ°è¾¼ã¿ãè¾¼â¦
ä»å¹´ããã¨ãããã¨ãªãã¾ããããä»å¹´æåã¨ãªãï¼ããã å¤å ä»å¹´æå¾ã«ãªãã§ãããï¼è¨å¿µãã¹ãã¨ã³ããªã¼ã¯ ãG* Advent Calendar 2012ãã®21æ¥ç®ã§ãã æ¨å¹´ã¯ãã£ããåºé ãã¦å¯ããæãããã¾ããããä»å¹´ã¯éã«åãã¾ãããï¼ï¼ ã§ãæ©éã§ãã...â¦
ä»åã Java ã§å ¨ææ¤ç´¢ã§ãã åå㯠Apache Lucene ã試ãã¾ããã ãæ¤ç´¢ã¨ã³ã¸ã³ã®å¸¸èãApache Solrã§èº«ã«ã¤ããã ã¨ãããã¨ã§ Apache Solr ã®ãã¢ã試ãã¦ã¿ã¾ããã ãã¡ãããä»åã誰ã§ã 60ç§ã§ ãã¢ã試ããããã« Gradle ã¹ã¯ãªãããä½ã£ã¦ã¿â¦
ä»æ´ãªãã Java ã§å ¨ææ¤ç´¢ã§ããã¨ãããã Apache Lucene ã® ãã¢ã試ãã¦ã¿ããã¨æã£ãã®ã§ãããææ°ãªãªã¼ã¹ã® 3.5.0 ã®æ å ±ãè¦å½ãããªãã£ãã®ã§ããã®éã誰ã§ã 60ç§ã§ ãã¢ã試ããããã« Gradle ã¹ã¯ãªãããä½ã£ã¦ã¿ã¾ããã ãã¢ã®ããã« ãâ¦
Gradle ã§ã¡ã¼ã«ãéããã¨ããã ã¯ã©ã¹ãã¹é¢ä¿ã§ã¯ã¾ã£ã¦ãã¾ã£ãã®ã§ã¡ã¢ãã¦ãããã ã©ããããant.mail ã使ãããã«ã¯ EmailTask (Ant ã®ã©ã¤ãã©ãª) ãèªã¿è¾¼ãã ã¯ã©ã¹ãã¼ãã«ç´æ¥ JavaMail é¢ä¿ã®ã©ã¤ãã©ãªã追å ãããããªãã£ã½ãã ã¯ã©ã¹ãâ¦
ãEclipse ã§è¤æ°ã® Specification ãä¸æ¬å®è¡ããã㧠å®ã¯ Spock ã«ã¯ Junit ã®ãã¹ãã¹ã¤ã¼ãã®ãããªæ©è½ã¯ããã¾ããã ã¤ã¾ããSpock èªèº«ã«ã¯ è¤æ°ã® Specification ãä¸æ¬ã§å®è¡ããæ©è½ã¯ãªãã®ã§ãã Eclipse ã§è¤æ°ã® Specification ãä¸æ¬å®è¡ãâ¦
Spock ã«ã JUnit4 ã® assumeThat ã®ããã« ããæ¡ä»¶ã®æã ã ãã¹ããã¹ãããããæ©è½ã 0.5-groovy-1.8 ã§è¿½å ããã¦ãã¾ãã åå ã®ããã«ããããè¨å®ãå¤æ´ããå¿ è¦ããªãã®ã§ãç°å¢ã«ä¾åãããã¹ãçã«ã¯é常ã«ä¾¿å©ã§ãã ä¾ãã°ãå®è¡ç°å¢ã Windoâ¦
Spock ã§ã JUnit4 ã®Category ã¨åãããã« ä»»æã®ãã¹ã (ãã£ã¼ãã£ã¼) ã ããå®è¡ãããã¨ãéã«ã¹ããããããã¨ãã§ãã¾ãã æ¹æ³ã¯ç°¡åã§ãã ããããããSpecification (ãã¹ãã¯ã©ã¹) ããã㯠ãã£ã¼ãã£ã¼ (ãã¹ãã¡ã½ãã) 㫠好ããªã ãã¢ããâ¦
Java ããã°ã©ãã å§ã㦠Spock ã®ã³ã¼ããç®ã«ããã¨ãä½ãéåæãæããã¨æãã¾ãã ãã¶ã ãã㯠Java ã¨ã¯ç°ãªã ãã¡ã½ããã 㨠ããããã¯ã ãåå ã ã¨æãã¾ãã(ãã¡ãã Groovy ã·ã³ã¿ãã¯ã¹ãã§ãã...) ã¨è¨ããã¨ã§ãä»åã¯ã¡ã½ããåã«ã¤â¦
Spockã§ã¯ (Groovy ã§ã...) Power Assert ã¨å¼ã°ãã ã¨ã£ã¦ã便å©ãªæ©è½ã§ ã¨ã©ã¼æ å ±ã詳細ã«åºåãã¦ãããã®ã§ããã æ²ãããã¨ã« Eclipse ã® JUnit ãã¥ã¼ã¯ãããã¼ã·ã§ãã«ãã©ã³ãã§è¡¨ç¤ºãããã®ã§ ã®ããã«é常ã«æ®å¿µãªçµæã«ãªã£ã¦ãã¾ãã¾ããâ¦
Spock ã使ãç¶ãã¦ããã¨ãå½ç¶ã§ãã Specification ãã¡ã¤ã«ã¯ã©ãã©ãå¢ãã¦ããã¾ãã å®ã¯ Spock ã«ã¯ Junit ã®ãã¹ãã¹ã¤ã¼ãã®ãããªæ©è½ã¯ããã¾ããã ã¤ã¾ããSpock èªèº«ã«ã¯ è¤æ°ã® Specification ãä¸æ¬ã§å®è¡ããæ©è½ã¯ãªãã®ã§ãã ã§ãããâ¦
Java ããã¸ã§ã¯ãã§ã¦ããããã¹ãã«ãå°ããªã Spock ãå°å ¥ãããã¨ããªã¹ã¹ã¡ãã¾ãã ãããEclipse ã使ã£ã¦ããã®ã§ããã°ããã£ãï¼ã¹ããã㧠æ¢åã® Java ããã¸ã§ã¯ãã«å°å ¥ã§ãã¾ãã ãä¸ã®æ¿èªããªãã¨å°å ¥ã§ããªããâ¦ã ã¨ã ããã«ãã¹ã¯ãªâ¦
2011å¹´ãæ®ãã¨ããå¾ï¼ã¶æã¨ãªãã¾ããã 12æã¨è¨ãã° ã¢ããã³ãã«ã¬ã³ãã¼ã§ãããæè¡ç³»ã¢ããã³ãã«ã¬ã³ãã¼ã«ã¯åå ã§ããªãã£ãã®ã§åæã«ãã£ã¡ããã¾ãã 3æ¥å主ã ãã«ã¯ãªããããªãã§ãã ãããã¨ããã¾ã§ããã°ã£ã¦ã¿ãããªâ¦ ã¨è¨ããã¨ã§ â¦
ãGradle ã§ã«ãã¬ãã¸ãè¨æ¸¬ãã¦ã¿ããã«å¼ãç¶ã EMMA ã¨ããããã¨ããã§ããã訳ãã£ã¦ Gradle ã§ã®ã«ãã¬ãã¸è¨æ¸¬ã«ã¯ Cobertura ã使ããã¨ã«ãã¾ããã ã¨è¨ãã®ã Jenkins CI ã® EMMA ãã©ã°ã¤ã³ã¨ã¯ ãã¾ãç¸æ§ãè¯ããªãããã ããã§ãã ãªã㨠Jâ¦
Gradle 㧠FindBugs ããæ¹æ³ã«ã¤ãã¦ã¯ id:kyon_mm ãããæ¢ã« ãGradleã§ç°¡åã«FindBugsã使ããããã«ãã¦ã¿ããã§æ¸ããã¦ãã¾ããã æè§ãªã®ã§ãããå°ãããæãã«ãã¦ã¿ã¾ããã å¤æ´ç¹ã¯5ã¤... ã¤ã³ã¯ãªã¡ã³ã¿ã«ãã«ãã«å¯¾å¿ãã ã©ã¤ãã©ãªã®åå¾â¦
åå㯠Gradle ã§ãã¹ãã並åã§å®è¡ãã¦ã¿ã¾ãããããã¹ãã¨è¨ãã°ãã«ãã¬ãã¸ã測å®ããªãã¨... ã¨è¨ããã¨ã§ãä»å㯠Gradle 㧠ãã¹ããå®è¡ãã¦ããã®éã®ã«ãã¬ãã¸ã測å®ãã¦ã¿ããã¨ã«... Java ã®ã«ãã¬ãã¸ãã¼ã«ã¨è¨ãã° Cobertura EMMA ãæåâ¦
Gradle ã® Java ãã©ã°ã¤ã³ã«ã¯ ãã¹ãã並åã§å®è¡ããããã®æ©è½ãæ¨æºã§ç¨æããã¦ãã¾ãã é常㯠ãã¹ãç¨ã®ããã»ã¹ã¯ 1ã¤ããç«ã¡ä¸ããã¾ãããã test.maxParallelForks = 5ã®ããã«è¨å®ããã° æ大 ï¼ããã»ã¹ã§ä¸¦åå®è¡ã§ããããã«ãªãã¾ãã ãâ¦
Spock ã JUnit ã®ãããªãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¯ ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ã§ ãã®ç価ãçºæ®ããã¾ãã ã¨è¨ããã¨ã§ãä»å㯠Jenkins CI 㧠Spock ãã¦ã¿ã¾ããã Jenkins CI 㧠Spock ããã° (ãã¡ãã å®è¡ã¯ Gradle ã§...) ãããªæãã§åºåãã¦ããã¾â¦
Spock 㯠Java 㧠BDD (Behavior Driven Development) ããããã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãã ãã¡ãããGroovy ã§ã... Java ã®éçºã§ã¯ ããªãã¿ã® IDE (Eclipse) ã ãã«ããã¼ã« (Ant, Maven, Gradle) ã«ã対å¿ãã¦ããã®ã§ãããã¸ã§ã¯ãã¸ã®å°å ¥ã¯ã¨ã£ã¦ãç°¡â¦
Gradle ã§ã Maven ã Ivy ã¨åãããã«ç°¡åã«ã©ã¤ãã©ãªã®ä¾åé¢ä¿ã解決ãããã¨ãã§ãã¾ãã å é¨çã« Ivy ãå©ç¨ãã¦ãããããªã®ã§åããã¨ãã§ãã¦å½ç¶ãªã®ã§ãã... ã¾ã㯠ãªãã¸ããªã®è¨å®ãã... ã©ã¤ãã©ãªã®åå¾å ã® Maven ãªãã¸ããªã®ãã¹ã â¦
id:kyon_mm ããã® ãGradleã§ç°¡åã«FindBugsã使ããããã«ãã¦ã¿ãã ãè¦ã¦ã ã¾ã㯠Code Quality ãã©ã°ã¤ã³ã試ãã¦ã¿ã¾ããã Code Quality ãã©ã°ã¤ã³ã使ãã°ãç°¡åã« Checkstyle ã CodeNarc ã§ã³ã¼ãã£ã³ã°è¦ç´ããã§ãã¯ã§ãã¦è¯ãã®ã§ããããâ¦
Mac OS X ã§ã SSH ã§ã®ãªã¢ã¼ããã°ã¤ã³ã許å¯ãã¦ãã㨠ä½ãã¨ä¾¿å©ãªã®ã§ãããããã©ã«ãã§ã¯ãã¹ã¯ã¼ãèªè¨¼ãæå¹ã«ãªã£ã¦ããã®ã§ ã»ãã¥ãªãã£çã«ã¡ãã£ã¨ã ãä¸å®ã ã£ãããã¾ãã ã¨è¨ããã¨ã§... ãã¹ã¯ã¼ãèªè¨¼ãç¡å¹ã«ãã¦ å ¬ééµèªè¨¼ã ãæå¹â¦
Amazon EC2 ã§ã¯ ã¤ã³ã¹ã¿ã³ã¹çææ ããã㯠ãã®åã« Key Pair ãçæã㦠ã¯ã©ã¤ã¢ã³ãã«ç§å¯éµããã¦ã³ãã¼ããã¾ãã EC2 ã¤ã³ã¹ã¿ã³ã¹ã«ã¯ ãã®ç§å¯éµã使ã£ã¦ SSH ã§ãã°ã¤ã³ããã®ã§ããã å®ã¯ ãã®è¡çºã« ä»ã¾ã§ ãã£ã¨éåæãæãã¦ãã¾ããã â¦
æè¿ãããããã¨è©±é¡ã®å¤ã Amazon EC2 ã§ãã... å®ã¯ éçºç¨éã¨ãã¦ãé常ã«ä¾¿å©ã«å©ç¨ã§ããã¨ãããã¨ã«æè¿æ°ãã¤ãã¯ããã¾ããã ãã®ä¸ã¤ã JAWS-UG Nagoyaåå¼·ä¼ ç¬¬1å ã§ãçºè¡¨ããã¦ããã ãã Jenkins CI ã®åæ£ãã«ã (ãã¬ã¼ã³è³æã¯è¿æ¥å ¬â¦
ãµã¼ãã®ä½æ¥ã¯ã»ã¨ãã©ãèªååããã¦ããã¨æãã¾ããã ãããããµã¼ãã«ãã°ã¤ã³ãã¦ã³ãã³ããå®è¡ããªãã¦ã¯ãªããªãã®ã§é¢åã§ãã ã¯ã©ã¤ã¢ã³ãããç´æ¥æä½ã§ããã°ããã®ã«... ã¨è¨ããã¨ã§ Gradle 㧠SSH ã§ããã ãã ãä»ã®ã¨ãã Gradle èªä½â¦
GitHub ã®ããã㧠ãã©ã¤ãã¼ãã§ã¯ Git ä¸è²ã®ä»æ¥ãã®é ããããã ä»äºã§ã Git ã使ã£ã¦ã¿ããã¨ã«... åæ£åãªãã¸ããªã使ã£ãéçºã®ãªãºã ã¯é常ã«å¿å°ãã ä¸åº¦å³ãã£ã¦ãã¾ã㨠ãã äºåº¦ã¨éä¸åãªãã¸ããªã使ã£ãéçºã«ã¯æ»ããªã... ã¨ãããâ¦
id:fumokmm ããã® ãé¡ï¼ã©ã³ãã æåå ãé¢ç½ããã ã£ãã®ã§ Groovy ã§åæ¦!! Groovy ã ã£ã¦ã¾ã ã¾ã ããããï¼ï¼
ã¾ã ã¾ã æµè¡ã® KeyValue -> XML (http://togetter.com/li/112454) ã JavaScript ã§æ¸ãã¦ã¿ã¾ããã æ¢ã« id:aya_eiya ããã ããã®ããæµè¡ã®KeyValueãJavaScriptã§ããã£ã¦ã¿ãã ã§æ¸ããã¦ãã¾ãã®ã§ã ããã¯ãã㦠DOM ã使ã£ã¦ã¿ããã¨ã«... ããâ¦
ã¯ã¦ãªãã¤ã¢ãªã¼ã« Gist ãåãè¾¼ããã®ã¯é常ã«ä¾¿å©ã ãã©ã ã¯ã¦ãªãã¤ã¢ãªã¼ã®è¦ãç®ã¨åããªããããªããã¤ãã¤ã... ã¨æããã¦ããæ¹ãã¿ããã®ã§ã¯ãªãã§ããããï¼ ãã¡ããèªåãããã§ããã ãã®ããã°ã§ä½¿ã£ã¦ãããã¼ãã®å ´åãã³ã¼ã㯠printâ¦