Migrate to build.gradle.kts
summary
Migrate Gradle build scripts from Groovy to the Kotlin DSL incrementally by first using Gradle 5.0 + Kotlin DSL 1.0 and Android Gradle Plugin 3.3+, cleaning up Groovy, then renaming files one-by-one and fixing syntax differences (properties vs calls, task registration, buildTypes getByName/create). Move shared version constants into buildSrc Kotlin objects instead of ext, keep problematic plugins or scripts as apply-from Groovy files (e.g., Google Services, Fabric), and rely on IDE completion and error markers to guide fixes; the approach was applied successfully to a real app.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 4:26New project migration
- 11:08Existing project migration
- 18:06Migration issues and fixes
- 25:37DSL patterns and notes
- 30:00Known issues and workarounds
- 31:05Summary








