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
Shibuya.Java #04
Search
grimrose
November 16, 2013
Programming
1
620
Shibuya.Java #04
第四回 #渋谷java
http://connpass.com/event/3744/
grimrose
November 16, 2013
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.8k
Gradleで始めるGroovy expand #jjug_ccc #ccc_r14
grimrose
4
6k
I wanna tell you about "Groovy Template"
grimrose
3
5.3k
Groovy Shell with Gradle
grimrose
0
5.2k
Shibuya.Java #07
grimrose
0
840
Ambiguous Groups #sqlap
grimrose
0
890
ぼっちプロジェクトとアジャイルサムライ
grimrose
0
270
I made out Gradle plug-in
grimrose
0
910
Other Decks in Programming
See All in Programming
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
250
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
430
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
2
520
基礎から学ぶ大画面対応(Learning Large-Screen Support from the Ground Up)
tomoya0x00
0
5k
ユーザーも開発者も悩ませない TV アプリ開発 ~Compose の内部実装から学ぶフォーカス制御~
taked137
0
190
Compose Multiplatform × AI で作る、次世代アプリ開発支援ツールの設計と実装
thagikura
0
180
Flutter with Dart MCP: All You Need - 박제창 2025 I/O Extended Busan
itsmedreamwalker
0
150
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
550
AI Agents: How Do They Work and How to Build Them @ Shift 2025
slobodan
0
110
知っているようで知らない"rails new"の世界 / The World of "rails new" You Think You Know but Don't
luccafort
PRO
1
190
MCPでVibe Working。そして、結局はContext Eng(略)/ Working with Vibe on MCP And Context Eng
rkaga
5
2.3k
Navigation 2 を 3 に移行する(予定)ためにやったこと
yokomii
0
360
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
2.8k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
The Language of Interfaces
destraynor
161
25k
Building Adaptive Systems
keathley
43
2.7k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
How to Ace a Technical Interview
jacobian
279
23k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
3k
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 使いたい
最後に ご清聴ありがとうございました。