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
Introduction to Gradle 2.0
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
FUJI Goro
September 24, 2014
Technology
4.4k
1
Share
Introduction to Gradle 2.0
potatotips #9 at Fablic の発表資料です
FUJI Goro
September 24, 2014
More Decks by FUJI Goro
See All by FUJI Goro
ステートレスなLLMでステートフルなAI agentを作る - YAPC::Fukuoka 2025
gfx
7
1.9k
How to Boost Your Code with WebAssembly
gfx
2
3.1k
AssemblyScriptでライブラリコードの高速化をしてみる
gfx
5
3.3k
実践TypeScriptトークバトル
gfx
1
1.2k
歴史的経緯の説明 as code
gfx
7
2.9k
Elasticsearchによる 全文検索の実装 in Rails
gfx
6
9.8k
すばらしきGraphQLのSEKAIへようこそ
gfx
20
9.8k
マルチテナント・ウェブアプリケーションの実践
gfx
14
9.8k
How to choose the ORM on Android
gfx
1
4.4k
Other Decks in Technology
See All in Technology
「決め方」の渡し方 / How to hand over the "decision-making process"
pauli
7
1.2k
AIがコードを書く時代の ジェネレーティブプログラミング
polidog
PRO
3
360
AIを活用したアクセシビリティ改善フロー
degudegu2510
1
140
Strands Agents × Amazon Bedrock AgentCoreで パーソナルAIエージェントを作ろう
yokomachi
2
160
今年60歳のおっさんCBになる
kentapapa
1
160
AIにより大幅に強化された AWS Transform Customを触ってみる
0air
0
310
Databricks Lakebaseを用いたAIエージェント連携
daiki_akimoto_nttd
0
150
自分をひらくと次のチャレンジの敷居が下がる
sudoakiy
5
1.8k
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.3k
OPENLOGI Company Profile for engineer
hr01
1
62k
【AWS】CloudTrail LakeとCloudWatch Logs Insightsの使い分け方針
tsurunosd
0
130
Oracle AI Databaseデータベース・サービス: BaseDB/ExaDB-Dの可用性
oracle4engineer
PRO
1
120
Featured
See All Featured
Thoughts on Productivity
jonyablonski
76
5.1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
270
Paper Plane
katiecoart
PRO
1
49k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
350
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Building an army of robots
kneath
306
46k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
240
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
85
The agentic SEO stack - context over prompts
schlessera
0
730
Why Our Code Smells
bkeepers
PRO
340
58k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
Transcript
Introduction to Gradle 2.0 potatotips #9 at Fablic, 2014/9/24 Fuji
Goro (gfx)
Myself • id:gfx (Fuji, Goro) • ΫοΫύουͷΤϯδχΞ • iOS /
Android྆ํΓ·͢ • ϚΠϒʔϜSwiftΛۃΊΔ͜ͱ • ࠷ۙϚγϯ͕ނোͯ͠σʔλϦΧόϦͰ͖ͳ͘ ͯڥ࡞Γͳ͓ͯ͠ਏ͔ͬͨɻϚγϯյΕΔ
Android Studio 0.8.11 2014/9/18 ϦϦʔε
Shipped with Android Gradle Plugin 0.13.0
! Depends on Gradle 2.1 and Groovy 2.3.6
Gradle 2.1
Gradle 2.1 • ৽͍͠pluginػߏ • https://plugins.gradle.org/ • نఆͷϝλใΛ͚ͭͯjcenterʹdeploy͢Δͱࢀর Ͱ͖ΔΑ͏ʹͳΔ •
pluginsϒϩοΫ • qualified idʹΑͬͯ҉ͷ͏ͪʹclasspathʹՃ͑Δ Έ
plugins { id 'com.github.forsety.adr' version '0.1' } apply plugin: 'com.android.application'
fully-qualified id no comma! no colon! before "apply"s Android pluginࣗମpluginsϒϩοΫͰࢦ ఆͰ͖ΔΑ͏ʹͦͷ͏ͪͳΔͱࢥΘΕΔ͕ ݱঢ়·ͩͰ͖ͳ͍ͷͰҎલͱ͓ͳ͡
Other features • Incremental Java compile (Android·ͩ…ʁʣ • Groovy 2.3.6
(Gradle 1.x Groovy 1.8.6) • Java8 support
Groovy 2.3.6
@CompileStatic ੩తܕ͖ͰίϯύΠϧ JavaฒʹരʹͳΔ
import groovy.transform.CompileStatic ! @CompileStatic int f(int a, int b) {
return a + b } ! def a = f(10, 20) // ܕਪޮ͘ println(a) import͕ඞਢ ASͩͱ͘ͳΔ
@CompileStaticͰมΘΔ͜ͱ • Gradle Pluginͷ࣮ߦ͕ߴʹͳΔ • ͨͩ͠ݴޠʮGroovyͷํݴʯʹͳΔ • ༻ײ͕͚ͬ͜͏ҧ͏ • Android
Gradle Pluginͷresource merge͘ ͳΔ…͔
·ͱΊ • Android Gradle Plugin 0.13ͰGradle 2.1Λ࠾ ༻ͨ͠ • Gradle
2.1pluginػߏ͕Ұ৽͞ΕͯΔͷͰ AndroidΤίγεςϜͰظײͷߴ·Γ͕͋Δ • Gradle 2.1Groovy 2.3.6Λ࠾༻͍ͯ͠ΔͷͰ ໘ͰվળͷݟࠐΈ͕͋Δ