~/talk

Use Kotlin DSLs for Your Gradle Scripts

TalkinFrenchat Android Makers 2020 · 2020-04-20..04-21· [kotlin, developer-experience]
slides:none on file

Kotlin DSL for Gradle (production-ready since Gradle 5.0) is presented as a way to use Kotlin across builds and scripts. The demo migrates a small three-module Android project by renaming files to .gradle.kts, adjusting string/quote and map syntax, adding necessary parentheses/symbols, creating a buildSrc with versions.kt and deps.kt to centralize versions and dependencies, and notes real incompatibilities (task creation differences and the plugin block must list all plugin IDs), IDE autocomplete latency improvements, lack of an automatic migration tool, and advice to migrate gradually.

AI-written summary · about

  1. 0:00Start
  2. 1:06What is a DSL? Domain Specific Language
  3. 2:37Statically typed type-safe DSL
  4. 3:14IDE experience
  5. 3:48Interoperability with existing scripts
  6. 4:15Maximum readability
  7. 4:32100% Kotlin
  8. 4:46Migration from Groovy to Kotlin
  9. 11:33Personal feedback: Pros & Cons
  10. 13:28Refactoring code
  11. 14:13Official documentation
~/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.