~/talk

Gradle Convention Plugins

Talkat DroidKaigi 2023 · 2023-09-14..09-16· [android]
links:none on file
slides:none on file

Gradle convention plugins centralize module configuration but only pay off when written cache-friendly: prefer binary (standard) plugins over script plugins, use tasks.register and the Provider API for lazy values, annotate task inputs/outputs and implement configuration cache compatible API. Put plugins into composite builds or publish to a Maven repo; avoid buildSrc unless on Gradle 8+ because older buildSrc/composite setups caused heavy recompilation (Square reported regressions). For Android, hook into onVariants/beforeVariant rather than mutating frozen Android extensions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Self-introduction and background
  3. 2:47Gradle convention plugins
  4. 4:31Convention plugins vs scripts
  5. 5:38Gradle build mechanics
  6. 9:16Build lifecycle explained
  7. 12:53Enabling composite builds
  8. 16:09Plugin project styles
  9. 18:05Plugin development languages
  10. 19:53Plugin API best practices
  11. 23:28Configuration caching
  12. 24:52Android Gradle tips
  13. 28:07Advanced Gradle practices
  14. 29:57Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.