What within gradle requires groovy instead of kotlin?

i am wondering what within gradle requires a script language like groovy, instead of a compiled and easy debugged one like, say kotlin.

I don’t quite understand the question. Dynamic and static languages both have pros and cons. Kotlin is a very young language and didn’t even exist when Gradle was created.

PS: Groovy is a compiled language as well.