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
Shibuya.Java #04
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
grimrose
November 16, 2013
Programming
680
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Shibuya.Java #04
第四回 #渋谷java
http://connpass.com/event/3744/
grimrose
November 16, 2013
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
Groovy Shell with Gradle
grimrose
0
5.3k
Shibuya.Java #07
grimrose
0
900
Ambiguous Groups #sqlap
grimrose
0
950
ぼっちプロジェクトとアジャイルサムライ
grimrose
0
310
I made out Gradle plug-in
grimrose
0
970
Other Decks in Programming
See All in Programming
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
160
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
120
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
130
ゲームコントローラやキーボードのファームウェアをSwiftで書く
kishikawakatsumi
1
270
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
140
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
210
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
250
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
290
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
290
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
600
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
520
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
370
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
560
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
540
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
350
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
310
Code Reviewing Like a Champion
maltzj
528
40k
Accessibility Awareness
sabderemane
1
230
Unsuck your backbone
ammeep
672
58k
Transcript
Gradle 使ってみませんか? @grimrose 2013-11-16 第四回 #渋谷java
あなた誰? • twitter: ‘@grimrose’ • 普段はJava6でお仕事 • Gradle大好き
ちょっと宣伝 #yokohamagroovy #mattarigrails
何話すの? • Gradleって何? • AntからGradleへ • MavenからGradleへ • 時間があればデモ
Gradleって何? • 次世代ビルドツール • 主にJava、Groovyで実装 • 現在 version 1.8 (2013-11-16時点)
◦ 1.9-rc-3リリース • pluginによりビルドツール以外でも使え る
師曰く 「世界で一番イケてる ビルドツール」
書籍は? • WEB+DB PRESS vol.76 ◦ Groovyの使い方 ◦ Gradleのセットアップ ◦
Webアプリケーションでの使 い方 • O’Reillyに幾つか(英語で)
日本語じゃないと… Gradle 日本語ドキュメント (Gradle User Guideを翻訳)
GradleとAnt • 基本はGroovyのAntBuilder • xmlより見やすい • build.xmlのインポート • 詳しくは第17章に
GradleとAnt project: “Ant + Ivy”
AntからGradleへ • Gradleへ移行しやすい • ivy.xml ◦ configurationsを活用 • build.xml ◦
ant.importBuild ‘build.xml’ ◦ task
GradleとMaven project: “Maven”
MavenからGradleへ • mavenのレイアウト ◦ mvn archetype:generate -> 無い
MavenからGradleへ • 雛形プロジェクト ◦ 1.7 ~ 1.8 ▪ gradle setupBuild
--type=java- library ◦ 1.9~ ▪ gradle init --type=java-library ▪ pom.xmlから生成可能 • --type=pom
MavenからGradleへ • maven plugin ◦ 使えません ◦ 似たようなpluginは、ググれば… ◦ 無ければCustom
Plugin
MavenからGradleへ コスト と メリット
MavenからGradleへ • mavenのレールから外れてる • pom.xmlがツライ • pluginをそんなに使っていない • 使いたいpluginが見つからない
Mavenを使いたい “mvn ${plugin}:${goal}”.execute()
Mavenを使いたい GroovyのXmlBuilder を使って pom.xml を生成
Gradleへ移行 • Ant ◦ 裏で頑張ってもらう ◦ xmlを人が書くのは、もう終わりにしよう • Maven ◦
コストとメリット ◦ 併用は可能だが、おすすめしない
Gradleへ移行 • プロジェクトに柔軟性を ◦ gradle wrapper ◦ Custom Task or
Plugin ◦ Task Test ◦ Groovy
AntのタスクをGradleで デモ
次のあなたのセリフは◦◦だ Gradle 使いたい
最後に ご清聴ありがとうございました。