100%.kt
summary
Gradle Kotlin DSL exists in the wild but is still small: build.gradle: 5.5M vs build.gradle.kts: ~8k and migration needs care — Gradle’s Kotlin DSL 1.0 is tied to specific Gradle RCs so plugin incompatibilities block updates. Practical fixes used here: regex-driven file conversions, moving shared logic into buildSrc for IDE completion and static checks, consulting Gradle sources for hidden APIs, and replacing bash/python scripts with kscript (supports deps, REPL, and can package self-contained jars).
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 1:28Gradle Kotlin DSL overview
- 3:39Gradle Kotlin DSL readiness
- 6:04Gradle Kotlin DSL syntax comparison
- 8:12Migrating to Kotlin DSL
- 10:39Migration challenges and tips
- 13:03Improving Kotlin DSL build scripts
- 17:04Dynamic language pitfalls
- 19:11Gradle sources and undocumented APIs
- 21:43Declarative vs imperative build scripts
- 24:59IDE usage for Kotlin DSL
- 25:44Alternative build systems with Kotlin
- 27:15Why Kotlin scripts
- 30:11Kotlin script features
- 33:43Kotlin script tooling benefits
- 35:53Resources and closing
related talks
22mUse Kotlin DSLs for your Gradle scripts
32mMigrate to build.gradle.kts
23mUse Kotlin DSLs for Your Gradle Scripts
30mKotlin DSL for Android Projects
50mThe Kotlin DSL experience in Gradle
33mGradle with Kotlin
48mType-Safe Build Logic with Gradle Kotlin DSL
33mCAN KOTLIN SAVE ME FROM MY GROOVY BUILDSCRIPTS?
