We’ve moved our project to Kotlin DSL (no biggie, 5 Android modules or so with some custom logic) and one of the main concerns I hear and feel is that using Kotlin forces you to understand how Gradle actually works which can be surprisingly non-trivial, especially with a lot of plugins doing things their own way. Using Groovy literally allows you copy-paste, using Kotlin forces you to rework it.
The
junit5()
method is a great example. Groovy auto-magically imports it from
dependencies.extra
and you can use it without any prior actions. With Kotlin it is actually necessary to look at the source code to determine where it was put.