Kotlin + Gradle: a technology combination sure to foster developer happiness and productivity.
You can use the official Kotlin Gradle Plugin from JetBrains to compile your Kotlin code to target JVM, Android, and JS.

image.png
Gradle has features you cannot get from other build tools: A highly-customizable dependency resolution engine, visual build inspection and debugging tools, and many work avoidance mechanisms.
These and other reasons are why Kotlin itself is built with Gradle Kotlin DSL and Gradle is the official build tool for Android.
You can bring the elegance and type-safety of Kotlin to your automation. Using Kotlin and a compatible IDE for your build scripts bestows quick documentation, completion, error highlighting, and refactoring.
Kotlin DSL v1.0 is available in the Gradle 5.0 milestone. Read the Gradle Kotlin DSL Primer and follow the guide to migrating build scripts to Kotlin.
"With great power comes great responsibility." These guides and references help you have the best experience building your Kotlin libraries and applications with Gradle: