Using the Kotlin DSL works very well in IntelliJ IDEA, for obvious reasons. I am finding a few “gotchas” transforming working Groovy DSL scripts to Kotlin DSL scripts, but once in place the Kotlin DSL works very well. I took a policy decision that all Kotlin applications with Gradle builds should use the Kotlin DSL and have not regretted it. I think using the Kotlin DSL for Java codes is also a good idea especially if there is a plan to integrate Kotlin code, or even transform the Java to Kotlin. For Groovy codes, maybe stick with Groovy DSL.
1 Like