Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Groovy Shell with Gradle
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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.2k
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
970
Other Decks in Programming
See All in Programming
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
120
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
0
280
Java 27新機能 / Java 27 new features
kishida
2
140
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
320
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
110
一人だけ、Kiroが静止する日
hideg
0
110
Go のフラットな パッケージに 「ファイル単位の private」を 〜Linter “declscope” を作った話〜
mpyw
0
320
Webの地図
yosuke_furukawa
PRO
6
4.5k
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
620
Intent as Code
shoppingjaws
6
1k
SREの越境 / SRE Collaboration
y0hgi
0
180
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
240
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
240
We Are The Robots
honzajavorek
0
370
Color Theory Basics | Prateek | Gurzu
gurzu
1
470
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
How to build a perfect <img>
jonoalderson
1
6k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
[RailsConf 2023] Rails as a piece of cake
palkan
59
7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
590
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
500
Visualization
eitanlees
152
17k
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
最後に ご清聴ありがとうございました。