~/talk

Gradle recipes for reducing your build times

Talkat droidcon London 2022 · 2022-10-27..10-28· [devops-and-delivery]
links:none on file
slides:none on file

An app with 30+ modules and 1,400 developers reduces incremental local build time from ~14 minutes to ~2 minutes by pruning plugins, switching KAPT to KSP/Anvil where possible, enabling build caching and configuration caching, preferring lazy APIs like tasks.register over eager task creation, disabling Jetifier and unnecessary build variants, using convention plugins instead of buildSrc, and measuring changes with Gradle Profiler or Gradle Enterprise; switching to M1 machines halves the remaining time.

AI-written summary · about

  1. 0:00Introduction to Gradle
  2. 1:52Understanding Gradle tasks
  3. 5:24Projects and plugins in Gradle
  4. 7:10Gradle lifecycle phases
  5. 9:39Initial build setup issues
  6. 11:22Easy Gradle performance wins
  7. 14:27Best practices for build scripts
  8. 20:50Custom tasks and caching
  9. 25:26Dependency management tips
  10. 26:32Configuration caching benefits
  11. 29:53Disabling unnecessary features
  12. 30:36Convention plugins approach
  13. 32:43Measuring build performance
~/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.