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
Introduction to Gradle
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Adrien Couque
January 07, 2014
Technology
56
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to Gradle
Adrien Couque
January 07, 2014
Transcript
30 slides
Confidentiel © 2014 Applidium | Focus On : Gradle Focus
On
None
Gradle User Guide
Gradle Build automa+on • Compila+on • Packaging
• Tests • Déploiements make
Build tools
Build tools
Démo 1 : Java
Structure du projet Ancien Nouveau
Structure du projet : fichiers spécifiques Ancien Nouveau
Structure du projet Ancien Nouveau
Structure du projet : dépendances Ancien Nouveau
Structure du projet : sources Ancien Nouveau
Structure du projet : ressources Ancien Nouveau
Structure du projet : manifeste Ancien Nouveau
Structure du projet : build Ancien Nouveau
Structure du projet : résultat Ancien Nouveau
Structure du projet : résultat Ancien Nouveau
Démo 2 : Android
Fichiers Gradle • build.gradle : configura+on du build •
settings.gradle : emplacement des fichiers build.gradle (si plusieurs modules) • gradlew : wrapper Gradle • gradlew.bat : wrapper (Windows) • gradle/ : dépendances de gradlew(.bat)
Tasks • clean : neHoie le dossier build/ •
assemble : compile le projet • check : lance les tests et vérifica+ons (ex : lint) • build : assemble + check
Build Types Par défaut : • Debug :
– debuggable – signé automa+quement (path : ~/.android/debug.keystore) • Release : – non debuggable – doit être signé (via keystore spécifique) Possibilité de customiser (permissions, ressources, ...) et d’ajouter d’autres build types
Dépendances • Librairie locale compile file(‘libs/foo.jar’) • Librairie distante
(par défaut : Maven Central) compile ‘com.google.foo:foo:11.0.2’ Nouveauté Gradle : fichiers aar : • jar : code Java, pas de ressources • aar : archive Android (uniquement pour Gradle)
Démo 3 : Sanofi
Product flavors • Permet de générer plusieurs applica+ons à
par+r du même code • Peuvent être configurées indépendamment (ex : package, min SDK, ...) • Build Type + Product Flavor = Build Variant • Généralement : sourceSets différents
Product flavors : source sets conflicts Ecrase *.java Layouts Drawables
Assets Menus Raw ... Fusionne AndroidManifest.xml colors.xml strings.xml styles.xml attrs.xml
Multi-flavor variants • Possibilité de définir plusieurs variantes en
même temps android { flavorGroups "abi", "version" productFlavors { freeapp { flavorGroup "version" ... } x86 { flavorGroup "abi" ... } } } • x86-freeapp-debug • x86-freeapp-release • arm-freeapp-debug • arm-freeapp-release • mips-freeapp-debug • mips-freeapp-release • x86-paidapp-debug • x86-paidapp-release • arm-paidapp-debug • arm-paidapp-release • mips-paidapp-debug • mips-paidapp-release
Démo 4 : VinciPark
Démo 5 : RMN Grand Palais
None
None
More Decks by Adrien Couque
See All by Adrien Couque
A roadmap to psychohistory
acq
0
120
ML Session n°8
acq
0
67
ML Session n°7
acq
0
29
ML Session n°6
acq
0
48
ML Session n°5
acq
0
69
ML Session n°4
acq
0
45
ML Session n°3
acq
0
110
ML Session n°2
acq
1
110
ML Session n°1
acq
0
100
Other Decks in Technology
See All in Technology
お風呂場をサーバルームにしよう
yusuke427
0
390
20261113_AWS Organizations運用を下支えするCFn StackSetsの柔軟性
dkduppf
0
110
IoTのデータ保存をSREの観点で考える
grimoh
1
120
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
160
Kubernetes, Agones, WebRTC, GPU で作る クラウドゲーミング基盤を本番運用に乗せるまで
vivion
0
270
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
130
コーディングできない僕にBobが舞い降りた
shumpei3
0
190
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
230
おうち環境でも「なるべく止めたくない!」 ― おうち環境の機器冗長化の理想と現実
yuutosi
1
640
Kansai WordPress Meetup@大阪『ブロックテーマを作る上で知っておくべきこと
torounit
0
300
ポケモンバトルのAIエージェント
koji_kawamura
0
140
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1.6k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
Building Applications with DynamoDB
mza
96
7.3k
Become a Pro
speakerdeck
PRO
31
6.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Test your architecture with Archunit
thirion
2
2.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
610
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
KATA
mclloyd
PRO
35
16k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k