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
5.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Groovy Shell with Gradle
http://jjug.doorkeeper.jp/events/13764
JJUG ナイト・セミナー 「ビール片手にLT&納涼会」
grimrose
August 20, 2014
More Decks by grimrose
See All by grimrose
だいたい10分くらいで 知った気になれる Vert.x 3.0 #渋谷Java / Shibuya.java #11
grimrose
0
1.9k
Syobochim should read book of modeling #syoboben
grimrose
0
1.9k
Gradleで始めるGroovy expand #jjug_ccc #ccc_r14
grimrose
4
6.1k
I wanna tell you about "Groovy Template"
grimrose
3
5.5k
Shibuya.Java #07
grimrose
0
900
Ambiguous Groups #sqlap
grimrose
0
940
ぼっちプロジェクトとアジャイルサムライ
grimrose
0
300
Shibuya.Java #04
grimrose
1
670
I made out Gradle plug-in
grimrose
0
960
Other Decks in Programming
See All in Programming
高専、大学編入、そして未踏へ〜プロダクト開発とキャリアの歩み - Technical College, University Transfer, and On to “Mitou” / My Journey in Product Development and Career
pkmiya
0
130
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
570
Oxlintはいいぞ(続)
yug1224
1
510
Claude Codeを組織的に動かして月400PRを実現した話
happy_ryo
0
230
T3DD26: From RAGs to Riches
martinhelmich
0
130
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
200
高専キャリア LT 発表内容
crysta1221
6
5.4k
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
130
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
280
Swift愛好会と私(ウホーイ) / Swift Fan Club and Uhooi
uhooi
0
110
AWS Transform Customによる Spring Boot 2.xから4.xへのVerUp
satoshi256kbyte
2
120
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
7
2.3k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.3k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Exploring anti-patterns in Rails
aemeredith
3
490
Chasing Engaging Ingredients in Design
codingconduct
0
290
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
What's in a price? How to price your products and services
michaelherold
247
13k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
310
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
640
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Optimizing for Happiness
mojombo
378
71k
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
最後に ご清聴ありがとうございました。