Groovy 2.3.0-beta-1ã¨beta-2ãåºãã®ã§æ°æ©è½traitãããã触ã£ã¦ã¿ã¾ããã 注æ! 以ä¸ã¯ç¾æç¹ã§2.3.0-beta-1ã¨2ã®æ¯èãã¨ããã¥ã¡ã³ãã調ã¹ãéãã®æ å ±ã§ããæ£å¼ãªãªã¼ã¹ã«åãã¦å¤æ´ãããå¯è½æ§ãããã¾ãã é¢é£è¨äº Introduce Groovy 2.3 trait Groovy 2.3ã®traitãããã¡ãã£ã¨èª¿ã¹ã¦ã¿ãã¤ãã§ã«Scalaã®traitãç解ãã - uehaj's blog traitã®æ¦è¦ã¨ç®ç Groovyã®traitã¯ãä¸è¨ã§è¨ã£ã¦ãå®è£ ã®å¤éç¶æ¿ããå¯è½ã¨ããä»çµã¿ã§ãã詳ããã¯ãã¡ãã®æ¬å®¶ããã¥ã¡ã³ã(è±èª)ãã©ããã Groovyããã³Java 7ã¾ã§ã®Javaã§ã¯ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯å¤éç¶æ¿ãããã¨ãã§ãã¾ããããã¯ã©ã¹ã¯å¤éç¶æ¿ã§ãã¾ããã§ãããå®è£ ãããªãã¡ã¡ã½ããæ¬ä½ã®å®ç¾©ããépublic static
Many readers will be familiar with JetBrainsâ excellent Kotlin programming language. Itâs been under development since 2010, had its first public release in 2012, and went 1.0 GA earlier this year. Weâve been watching Kotlin over the years, and have been increasingly impressed with what the language has to offer, as well as with its considerable uptakeâparticularly in the Android community. Late l
AndroidDemoIn4Languages ã©ã®è¨èªãAndroidéçºã«é©åãªã®ããæ¢ãã®ããã«ãJavaãGroovyãScala ãKotlinã使ç¨ãã¦åãã¢ããªãä½ãã æ¯è¼æ¹æ³ ä¾åãæå°éã«å©ç¨ããã ä¾åæ å ±å ±å Java ã¤ã³ãã¼ã com.android.support:appcompat-v7:23.3.0 Groovy ã¤ã³ãã¼ã com.android.support:appcompat-v7:23.3.0 ã¤ã³ãã¼ã org.codehaus.groovy:groovy:2.4.6:grooid ã¤ã³ãã¼ã org.codehaus.groovy:groovy-json:2.4.6 Scala ã¤ã³ãã¼ã com.android.support:appcompat-v7:23.3.0 ã¤ã³ãã¼ã org.scala-lang:scala-library:2.
1.0.0 ããªãªã¼ã¹ããã¾ãããããã¾ãããã åã®è¦³æ¸¬ç¯å²å ã«è¦ãããã¨ãå¢ãã¦ããã®ã§ãèå³æ¬ä½ã§å°ããã¤è§¦ã£ã¦ãã¾ãã ã¾ãããã©ã¦ã¶ã ãã§è©¦ãããã¥ã¼ããªã¢ã«ã大å¤ç´ æ´ãããã®ã§ãKotlin ãèã«åããã©ãã確èªããã¨ããã§ããã Kotlin Koansjs ã§å®è£ ãããã¨ãã£ã¿ãªã®ã«ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãã ãã§ãªããå ¥åè£å®ãã¬ã³ã¬ã³å¹ãã®ã§åãè¯ãã åã®ç解#å¤§ä½ 3 æ¥ãããããã¦è¨èªä»æ§ãããã¥ã¢ã«ã®é¡ãèªã¿ãªãããã¥ã¼ããªã¢ã«ãããªããçµæã Kotlin 㯠å®å ¨ãªæ¬¡ä¸ä»£ã® Groovy ã§ããã¨ããç解ã«å°éãã¾ããã åã Groovy ã«å¯¾ãã¦æã£ã¦ããä¸æºã¯ã大ä½ä»¥ä¸ã®éãã ã©ã³ã¿ã¤ã ããã«éããgroovy-all-2.4.6-indy.jar ã 6.5Mãã¤ãã³ã¼ãã¨ã³ãã³ã¹çã®å±éºãªé»éè¡ãã«ã¸ã¥ã¢ã«ã«åãåãããããã§ãå®ã¯æ®ã©ãªãåããã¾
å æ¥ Yaml Axis Plugin ãä½ã£ãæã«gradleã¨groovyã§Jenkinsã®ãã©ã°ã¤ã³ãä½ã£ãã®ã§ããããã®æã®ãããªãã¤ã³ããä¸å¿ã«ã¡ã¢ tl;dr https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins https://wiki.jenkins-ci.org/display/JENKINS/Gradle+JPI+Plugin Gradle https://wiki.jenkins-ci.org/display/JENKINS/Gradle+JPI+Plugin ã«ãã build.gradle ã®ãµã³ãã«ãã³ãããã¦é©å®ç·¨éãã¦ä¿åã confluenceãããGitHubã®èª¬æã®æ¹ã詳ããã§ãã https://github.com/jenkinsci/gradle-jpi-plugin Gradle
ãã£ã¦ããï¼#19 - #20 - #21 - #22ã¨4é£ç¶å½é¸ãããï¼ connpass.com å 容 æè¿ã¯BLEãã¿ãå¤ãã¦BLEãªã¸ãµã³åãã¦ãã®ã§ï¼è¶£åãå¤ãã¦ãã¹ããã¿ï¼ speakerdeck.com Spock Spockã¯RSpecãªã©ããå½±é¿ãåãããããï¼ãããæè»ã§ããæãã®DSLã§ãã¹ãï¼Specï¼ãæ¸ããã¨ãããã°ããããã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã§ããï¼ github.com ç¹å¾´ã¯è²ã ãããï¼å人çã«å¤§ããã¨æã£ã¦ããã®ã¯ä»¥ä¸ã®2ã¤: ãã©ã¡ã¿ã©ã¤ãºããã¹ããè¶ ããæãã«ããã ãã¹ãè½ã¡ãæã®ã¡ãã»ã¼ã¸ãè¦ãããï¼Power Assertï¼ï¼ Parameterized test Parameterized Test ã¨ã¯ãã¾ãã«ä¼¼ããããªãã¹ãã¡ã½ããããã¹ããã¼ã¿ã ãå¤ãã¦è¤æ°ä»¶å®è¡ãããã¨ãã§ããæ段ã§ãå¤ãã®å ´åãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã®æ¡å¼µæ©è½
2. NTTã½ããéå ´ç ä¿®Grails/Groovyå ¥éCopyright (C) 2015 NTT Software Corporation. All rights reserved. æºå â¢æ¼ç¿ãããªã¢ã«ãæºåãªã©ã¯ãã¡ãã ã âhttps://github.com/uehaj/groovy- bootcamp2015 2 3. NTTã½ããéå ´ç ä¿®Grails/Groovyå ¥éCopyright (C) 2015 NTT Software Corporation. All rights reserved. 3 NTTã½ããéå ´ã®ãç´¹ä» å®åçµé¨è±å¯ãªå½ç¤¾ãããã§ãã·ã§ãã«ç¤¾å¡ã®å®è·µçµé¨ããå¾ããããã¦ãã¦ãç ä¿®ã«ãªãã¥ã©ã ã¨ãã¦ãæä¾ãã¾ã Jenkins Android Grailsï¼Groovy ã¢ãã³Webãã¶ã¤ã³ OSSVERTã»Web3層æ§ç¯ä»®æ³å ãã¹ããã¼ã« NW
ã¯ããã« @rejuspotaroããã®é¢æ°åè¨èªãå¦ã¶ãã¨ã¯å®åã§ã©ãå½¹ã«ç«ã£ãããè¦ã¦RxJavaã使ã£ã¦ã¿ãããªãã¾ãããã¾ããiOSã®Swiftã¨Androidã®Groovyãè¦ã¦ãRxJavaãAndroidã§ä½¿ããªããGroovyã§ã ãªã¨æãã¾ããã ã¾ããä¸è¨ã®è¨äºã§ã¯ãè¨åããã¦ãã¾ããã§ãããRxAndroidã¨ãããã®ãããããã§ããViewã®ã¯ãªãã¯ã®ã¹ããªã¼ã ããEditTextã®å¤æ´ã®ã¹ããªã¼ã ãçæããã¡ã½ãããç¨æããã¦ããã¿ããã§ãã ä»ã¾ã§ç§ã¯ãRxJavaãã¡ãã£ã¨è©¦ãã¦ã¿ããªãGroovy(ããã¨ãã)ã¨ããRxGroovyã«ã¤ãã¦æ稿ãã¦ãã¾ããããä»åãã£ã¨RxAndroidãRxJavaãGroovyã§ä½¿ã£ã¦ã¿ããã¨æãã¾ãã ãã¿ã³ã¯ãªãã¯åæ°ã表示 ãã¿ã³ã¯ãªãã¯ã®åæ°ãTextViewã«è¡¨ç¤ºãããã¨æãã¾ãã(ãããåãã£ã¦ãã¾ãããRx使
1. Slide # æ¸è°·JVM Copyright(C) 2015 NTT Software Corporation All rights reserved.1 2015å¹´ 4æ 18æ¥ JGGUG/NTTã½ããã¦ã§ã¢æ ªå¼ä¼ç¤¾ ä¸åæ½¤äº ä»ããå§ããã Groovy æ¸è°·JVM 2. Slide # æ¸è°·JVM Copyright(C) 2015 NTT Software Corporation All rights reserved. ãããã㯠ä¸å潤äº(@uehaj) NTTã½ããã¦ã§ã¢(æ ª)Grailsæ¨é²å®¤ JGGUGéå¶å§å¡ æ¸ç±: ããã°ã©ãã³ã°GROOVY(æè¡è©è«ç¤¾) Grailså¾¹åºå ¥é(ç¿æ³³ç¤¾) ããã°ãGrãªæ¥ã ã 2 Elmã¨Rust æ¨ãã¦ã¾ã
ã¿ã¤ãã«ã¯ãããã³ããªã¡ã¼ã«ã¼ã使ãã¾ãããhttp://pha22.net/hotentry/tb/r?word=Spock%E3%81%AE%E3%83%86%E3%82%B9%E3%83%88%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88&phrase=9 å ¨å½49ä¸ã®Spockã¦ã¼ã¶ã®ã¿ãªãã¾ãSpockã®MLãè¦ã¦ããã¨æãã®ã§ããåç¥ããããã¾ãããSpockã®ãã¹ãã¬ãã¼ãããåç¥ã§ãªãæ¹ãããã¨æãã®ã§ç´¹ä»ãã¾ãã Spockã®ãã¹ãçµæã¯ã ãããã¿ããªGradleã§è¦ã¦ãã Spockã¯è¨ããã¨ç¥ããUnitTestingFrameworkçæå¼·ã¨ãããããã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã§ãããããã®ãã¹ãã¬ãã¼ãã¯é常ã¯JUnitã®ãã¹ãã¬ãã¼ãXMLã§ãããå¤ãã®Spockã¦ã¼ã¶ã¯Gradleã§ãã«ãããã¦Gradleãçæãããã¹ãã¬ãã¼ããè¦ã¦
ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯Spockã§ç¸äºä½ç¨ä¸å¿ã®ãã¹ããããå ´åããããããã¹ãããã«ã¨ãã¦ãMockã¨Stubã¨Spyã®3種é¡ã使ãã¾ããããããã®æå³ãªã©ãç°¡åã«è§£èª¬ãã¾ãã Spockå ¨ä½å«ã詳ãã解説ã¯ãã¡ããªã©ãåç §ãã ããã Mockã«é¢ãã¦ã¯ãid:yamkazu æ°ã«ãããã¡ãã®JGGUG G*Workshopã®è³æãç§é¸ã§ãã Stubã¨ã¯ æåã«ãStub(GroovyStub)ã«ã¤ãã¦ã§ããStubã¯å¾è¿°Mockã®ä½æ©è½çã§ãããå ·ä½çã«ã¯ãã¢ããã³ã°ãã§ããªãMockããStubã§ããStubãã§ãããã¨ã¯Mockã§ã§ããã®ã§ãæ¬æ¥Stubã使ãå¿ è¦ã¯ããã¾ãããã¢ããã³ã°ããªããã¨ãæ示ããããªãã使ãã°è¯ãã§ãããããªããSpockç¨èªã®ãã¹ã¿ãã³ã°ãã¨ã¯å¥ã®ãã®ã§ã(ã¹ã¿ãã³ã°ããã³ã¢ããã³ã°ã«ã¤ãã¦ã¯å¾è¿°)ã Mockã¨ã¯ Mock(ãããã¯Groovy
Spock ã¨ã¯ build.gradle HelloSpock ä»æ§(ãã¹ãã±ã¼ã¹)ã®æ§é ãã£ã¼ã«ã fixture ã¡ã½ãã feature ã¡ã½ãã helper ã¡ã½ãã ãã¼ã¿ããªãã³ãªãã¹ã @Unroll data pipe Stack ã®ä»æ§ä¾ ä¾å¤ã®æ¤è¨¼ ä¾å¤ã¨ãªããªããã¨ã®æ¤è¨¼ ã¿ã¤ã ã¢ã¦ããé©ç¨ãã Hamcrest matchers ã使ã ãªã½ã¼ã¹ã®ã¯ãªã¼ã³ããããè¡ã @Shared ã§å ±æãªã½ã¼ã¹ãå©ç¨ãã Specification ã«èªç¶è¨èªã®ååãã¤ãã MOPãé©ç¨ãã feature ã®å®è¡ãå¶éãã @Ignore @IgnoreRest @IgnoreIf @Requires @Stepwise Spock ã¨ã¯ Java 㨠Groovy ã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã£ã³ã°ã¨ä»æ§ãã¬ã¼ã ã¯ã¼ã¯ JUnit, jMock, RSpec, Groov
åãã¾ãã¦ãç°ä¸ã¨ç³ãã¾ãã"Groovy" ã¨èãã°ãã¾ããæ°åã¯ã°ã«ã¼ãã¼ãã¨ããéæ¥æ¼«ç»ãæãåºãããããªä¸ä»£ã®äººéã§ãã ãã¦ãGroovy ã§ããããGradle ã使ãããã«ä»æ¹ãªãè¦ããè¨èªãã¨æã£ã¦ãã¾ãããï¼ ç§ã¯ãå¤ãã·ã¹ãã ã®æ¹ä¿®ã®ä¸ç°ã¨ã㦠Ant ã Gradle ã«ç½®ãæãããã¨ã«ãªããæè¿ Groovy ã使ãå§ããã®ã§ãããå½åã¯ãã®ããã«æã£ã¦ãã¾ãããããããå®éã«ä½¿ã£ã¦ã¿ãã¨ãçµæ§ä¾¿å©ã ãããªããªãèå³æ·±ãè¨èªã ã¨æãã¾ããã¨ãããããããã¨æã£ãã®ããAST å¤æãã§ãã AST å¤æã¨ã¯ Groovy ã®ã³ã¼ãã¯ãæçµçã«ã¯ Java ãã¤ãã³ã¼ãã«å¤æããã¾ãããã½ã¼ã¹ã³ã¼ããããããªããã¤ãã³ã¼ãã«å¤æãããããã§ã¯ãªããã¾ãææ³æ§é ãããªã¼å½¢å¼ã§è¡¨ãã AST (Abstract Syntax Treeï¼æ½è±¡æ§ææ¨) ã¨å¼ã°ãä¸é表ç¾ãä½æã
is an agile and dynamic language for the Java Virtual Machine builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk makes modern programming features available to Java developers with almost-zero learning curve provides the ability to statically type check and statically compile your code for robustness and performance supports Do
5. in Java // HelloWorld.java public class HelloWorld { public static void main(String... args) { System.out.println("Hello, World!"); } } //=> Hello, World! 6. in Groovy // HelloWorld.groovy public class HelloWorld { public static void main(String... args) { System.out.println("Hello, World!"); } } //=> Hello, World! Groovyã¨ãã¦ãvalidãªã³ã¼ããªã®ã§ æ¡å¼µåãå¤ããã ãã§OK
Windowsç°å¢ã§ã®Groovy/Grailséçºã幸ãã«ãã!?GVMã¯ãã¼ã³posh-gvmã使ã£ã¦ã¿ã #yokohamagroovy GrailsGroovyPowerShellGVM > (new-object Net.WebClient).DownloadString('https://raw.githubusercontent.com/flofreud/posh-gvm/m aster/GetPoshGvm.ps1') | iex Downloading posh-gvm from https://github.com/flofreud/posh-gvm/archive/master.zip posh-gvm installed! Please see https://github.com/flofreud/posh-gvm#usage for details to get
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}