Gradle Kotlin DSL 1.0
This is a guest blog post from Paul Merlin
software engineer for Gradle
We want you to enjoy a build authoring experience with the benefits provided by Kotlin’s static type system in Intellij IDEA and Android Studio: auto-completion, smart content assist, quick access to documentation, navigation to source and context-aware refactoring.
To view the video in Safari you may need to install the VLC Web Browser Plugin.
In case you missed it, you can watch Paul Merlin demonstrate these benefits in the Type-safe build logic with Gradle Kotlin DSL video from KotlinConf 2018.
If you prefer the flexibility and dynamic features of Groovy, that’s totally okay — the Groovy DSL will not be deprecated.
Using the Kotlin DSL today
The Gradle Kotlin DSL Primer user manual chapter is the best place to start learning more: it will cover all the basics and answer most of your questions.
If you are working with an existing build using the Gradle Groovy DSL you’ll be interested in the Migrating build logic from Groovy to Kotlin guide.
Several community plugins now have Gradle Kotlin DSL snippets in their documentation: Spring Boot, Docker, Detekt, Kotlinter, APT, Android JUnit 5, Android Check 2, Android Play Publisher and the list goes on.
Last but not least, the Gradle documentation contains build script excerpts that demonstrate both the Groovy DSL and the Kotlin DSL. This is the best place to find how to all things with each DSL; and it covers all Gradle features.
Again, a big thank you to all who helped make this a reality!
Community involvement has been instrumental to reach 1.0. It is also crucial going forward.
We want to know what you think works well or poorly in the Kotlin DSL. Feedback on the IDE experience, logging, and everything in between is welcome. Please discuss through the Kotlin DSL issue tracker or the
#kotlin-dsl channel on Gradle Community Slack (which you can join using this link).
Subscribe to Blog updates
Thanks, we've got you!
Kotlin Is Everywhere! Join the Global Event Series
When we say ‘Kotlin is everywhere’, we mean it. Kotlin works on all platforms, and it allows you to develop all types of applications. Developers are excited about Kotlin and hungry for opportunities to learn more. Now it’s time to bring it to your city with the support of JetBrains and Google. W…
Kotlin Census 2018
Our Kotlin community is growing fast; the number of users has increased by almost 3 times this year. The feedback you give is very important to us both as newcomers who have just started using Kotlin in 2018 and as experienced Kotlin users. If you're still hesitant about using Kotlin, we would like…
Kotlin 1.3 Released with Coroutines, Kotlin/Native Beta, and more
You can read this blog post in other languages: Today we are releasing Kotlin 1.3 together with a set of accompanying libraries, build tools, and learning materials! We develop Kotlin to be a good tool for all application developers, at all scales and on all platforms. In Kotlin…
KotlinConf 2018 Announcements
In today's keynote at KotlinConf 2018 we made a series of announcements around releases, resources, and other things we've made available. For your convenience below is a brief summary of the announcements with the corresponding links for more information. Kotlin 1.3 hits RC Version 1.3 hits RC…