GradleのREPLプラグイン紹介 #jggug

Post on 27-Aug-2014

1.226 views 0 download

Tags:

description

JGGUG 2014/06/20 でLTしました。

Transcript of GradleのREPLプラグイン紹介 #jggug

Make Gradle Useful@kyon_mm

2014/06/20 JGGUG G* Workshop

Self Introduction

• きょん @kyon_mm 26歳うさみみ系エンジニア

• Groovy, F#, C#, Scala

• SCMBC, Nagoya.Testing, TDDBC

• Test Architecture in Nagoya

• @IT にてTDD/BDDを連載しています

Gradle Script is Dynamic Typed Script

Question

あなたはどっち? Gradleを使った事がない

Gradleで便利になっている

Gradle is very nice. Modern Build tool.

But

My dissatisfaction on Gradle

My dissatisfaction on Gradle

• Code Completion by IDE is very few. • Plugins are scattered. • Not support running on JDK8. • Not have REPL.

My dissatisfaction on Gradle

• Code Completion by IDE is very few. • Plugins are scattered. • Not support running on JDK8. • Not have REPL.

Gradle 2.x

Today

Gradle REPL with Code Completion

DEMO

Today Introduce

Gradle Groovysh plugin -> Gradle REPL Groc -> Generate HTML from JavaDoc with Markdown

Gradle groovysh pluginapply plugin: 'groovysh'!buildscript { repositories { jcenter() } dependencies { classpath 'com.tkruse.gradle:gradle-groovysh-plugin:0.4.0' }}groovysh { groovyVersion = '2.3.3'}

Please off daemon, parallelgradle -q buildDevShell

Groc

git clone https://github.com/kyonmm/Groc.git!cp Groc/groc.groovy targetProjectDirectorycd targetProjectDirectorygroovy groc.groovy -e gradle# groovy groc.groovy -e groovy!open docs/xxxx.html

ご清聴ありがとぴょん☆