@codejennerator and @eriwen Gradle 5.0 introduction.
Kotlin DSL all about IDE assistance.
Q: Could future version of Gradle gain similar benefits with Groovy @CompileStatic
A: Yes, this is actually a result of the plugins themselves. It can help a little bit but there is much dynamism in all the contracts all the way down that we cannot make it a consistent experience. Kotlin makes that. It enforces static typing.you can gain, have a similar experience with Groovy. We really tried and you know, introducing a whole new DSL is a lot of work and we have done it if we did not think it was absolutely necessary and worth it.
Q: Are there any performance benefits from the Kotlin DSL?
A: No. I mean the Kotlin DSL performance characteristics are very similar to Groovy’s. Kotlin DSL build scripts can be cached in the build cache which makes subsequents uses faster than Groovy but only marginally so. The first compile, the groovy compiler takes a little bit longer with that static typing than Groovy does so the first executions will be a bit slower and subsequents executions will be faster. You know, it depends on the app a bit. There are usually other performance benefits that you can get in other ways than converting to Kotlin DSL. I would make sure that incremental build, build caching, incremental compilation before you consider the Kotlin DSL for performance reasons.