Since its 5.0 version, Gradle offers a way to write Gradle scripts in Kotlin.
This article was posted on our Medium Engineering Blog.