Get ready for Kotlin DSL 1.0
Table of Contents
Introduction
Gradle Kotlin DSL 1.0 release candidate is generally available, included in Gradle 4.10. The Kotlin DSL is nearly ready for widespread use.
We want you to enjoy a build authoring experience with the benefits provided by Kotlin’s static type system: context-aware refactoring, smart content assist, debuggable build scripts, and quick access to documentation. In case you haven’t seen it, you can watch Rodrigo B. de Oliveira demonstrate these benefits in this KotlinConf 2017 video.
Kotlin DSL 1.0 final will be released with Gradle 5.0, which is the next version of Gradle. After version 1.0, the Kotlin DSL will not introduce any more breaking changes without a deprecation cycle.
Please try the Kotlin DSL and submit feedback. Guidance for doing that follows.
Trying the Kotlin DSL today #
The Migrating build logic from Groovy to Kotlin guide is the best place to start: it will cover all the basics and answer most of your questions.
You should also consider these resources for use cases not covered by the migration guide:
- Dozens of Kotlin DSL samples are available through GitHub
- Some of the guides and nightly Gradle docs have Kotlin DSL samples. (Interested in contributing? Follow these instructions).
Feedback wanted #
Your feedback is crucial for this project to reach this milestone.
We want to know your experiences, good and bad, authoring the Kotlin DSL, understanding the logging, with your IDE, and everywhere in between.
Please discuss through Kotlin DSL issue tracker or through the #kotlin-dsl
channel on Gradle Community Slack (which you can join using this link).
We would not be where we are today without you. Special thanks to Jonathan Leitschuh, Jean-Baptiste Nizet, Ilya Chernikov, Stefan M., Mike Kobit, the awesome Kotlin team, and dozens of others who’ve helped along the way.
Onward to Gradle Kotlin DSL 1.0!