Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Groovy Shell with Gradle
Search
grimrose
August 20, 2014
Programming
0
5.2k
Groovy Shell with Gradle
http://jjug.doorkeeper.jp/events/13764
JJUG ナイト・セミナー 「ビール片手にLT&納涼会」
grimrose
August 20, 2014
Tweet
Share
More Decks by grimrose
See All by grimrose
だいたい10分くらいで 知った気になれる Vert.x 3.0 #渋谷Java / Shibuya.java #11
grimrose
0
1.8k
Syobochim should read book of modeling #syoboben
grimrose
0
1.7k
Gradleで始めるGroovy expand #jjug_ccc #ccc_r14
grimrose
4
5.9k
I wanna tell you about "Groovy Template"
grimrose
3
5.3k
Shibuya.Java #07
grimrose
0
810
Ambiguous Groups #sqlap
grimrose
0
860
ぼっちプロジェクトとアジャイルサムライ
grimrose
0
250
Shibuya.Java #04
grimrose
1
610
I made out Gradle plug-in
grimrose
0
900
Other Decks in Programming
See All in Programming
個人開発の学生アプリが企業譲渡されるまで
akidon0000
0
1.1k
複雑なフォームの jotai 設計 / Designing jotai(state) for Complex Forms #layerx_frontend
izumin5210
5
1.3k
Java 24まとめ / Java 24 summary
kishida
3
510
On-the-fly Suggestions of Rewriting Method Deprecations
ohbarye
1
3.9k
プロダクト横断分析に役立つ、事前集計しないサマリーテーブル設計
hanon52_
2
490
ComposeでのPicture in Picture
takathemax
0
120
新しいPHP拡張モジュールインストール方法「PHP Installer for Extensions (PIE)」を使ってみよう!
cocoeyes02
0
430
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
140
Road to RubyKaigi: Making Tinny Chiptunes with Ruby
makicamel
4
490
実践Webフロントパフォーマンスチューニング
cp20
41
9.2k
Cursorを活用したAIプログラミングについて 入門
rect
0
110
ウォンテッドリーの「ココロオドル」モバイル開発 / Wantedly's "kokoro odoru" mobile development
kubode
1
220
Featured
See All Featured
Thoughts on Productivity
jonyablonski
69
4.6k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Gamification - CAS2011
davidbonilla
81
5.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Producing Creativity
orderedlist
PRO
344
40k
Rebuilding a faster, lazier Slack
samanthasiow
81
8.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Transcript
GradleではじめるGroovy @grimrose 2014-08-22 JJUG ナイト・セミナー 「ビール片手にLT&納涼会」
あなた誰? • twitter: ‘@grimrose’ • 好きな言語: Groovy • 好きなIDE: IntelliJ
IDEA
ちょっと宣伝 #yokohamagroovy #mattarigrails
Gradleって何? • 次世代ビルドツール • 現在 version 2.0 ◦ 2014-07-01 リリース
◦ リリースは約6~8週間毎 ◦ 2014-08-19 2.1-rc-1 リリース • 主にJava、Groovyで実装 ◦ Java8対応 ◦ Groovy: 2.3.x
師曰く 「世界で一番イケてる ビルドツール」
Gradleのインストール Groovy enVironment Manager
GVMのインストール $ curl -s get.gvmtool.net | bash
posh-gvm Windows環境でのGroovy/Grails開発を 幸せにする!?GVMクローンposh-gvmを 使ってみる http://qiita. com/_y_u_/items/7a4ffd6b79c829c99 62f
Gradleのインストール $ gvm i gradle
Gradle Wrapper ソースコードと一緒に管理
Gradle入門 qiita. com/vvakame/items/83366f bfa47562fafbf4
Gradle入門 • WEB+DB PRESS vol.76 ◦ Groovyの使い方 ◦ Gradleのセットアップ ◦
Webアプリケーションでの使 い方
Groovy入門 プログラミングGROOVY
Groovy groovy-lang.org
言語を学ぶ ちょっと試しながら
言語を学ぶ REPL
Read Eval Print Loop REPL欲しいですよね?
Java REPL albertlatacz/java-repl
Java REPL $ java -jar javarepl.jar
Groovy REPL Groovy Shell
Groovy Shell groovy-lang.org/groovysh.html
Groovy Shell Groovyのインストール
Groovyのインストール $ gvm i groovy
Groovy Shell $ groovysh
Gradle Wrapper Gradle: インストール不要
Gradle Groovy: インストール不要
本題 Gradle Wrapper を使って Groovy Shell を呼ぶ
Gradle Groovysh Plugin tkruse/gradle-groovysh-plugin
build.gradle buildscript { repositories { jcenter() } dependencies { classpath
'com.tkruse.gradle:gradle-groovysh-plugin:1.0.0' } } apply plugin: 'com.github.tkruse.groovysh' apply plugin: 'java'
build.gradle (2.1〜) plugins { id 'com.github.tkruse.groovysh' version '1.0.0' } apply
plugin: 'java'
注意点 • プロジェクトをロックしてしまう。 ◦ 使用中は、IntelliJ IDEA等でGradleプロ ジェクトの更新が出来ない。 • -q オプションを使う
◦ Gradleのログが出力されて使いづらい • --no-daemon オプションを使う ◦ Gradleをdaemonで動かしてる人は注意。
起動 $ ./gradlew -q shell
終了 • Ctrl + c • :exit ◦ :x •
:quit ◦ :q
最後に宣伝 #jggug
最後に宣伝 #yokohamagroovy #mattarigrails
最後に ご清聴ありがとうございました。