Type-Safe Build Logic with Gradle Kotlin DSL
summary
Gradle 5.0 lets build scripts use Kotlin so build logic becomes statically typed and IDE-aware: the talk shows migrating a Groovy Android Sunflower sample by renaming .gradle to .gradle.kts, disambiguating property assignments, switching apply plugin → plugins block, and moving dynamic extra properties into a shared buildSrc Kotlin module. It demonstrates helpers for Groovy interop (e.g. delegateClosureOf), reports first-run compilation is slower but global caching shrinks subsequent start times, and recommends Kotlin-first plugin authorship for better refactoring and navigation.
AI-written summary · about








