Anyone know if using kotlin instead of groovy for ...
# android
a
Anyone know if using kotlin instead of groovy for gradle is still slower than using groovy for gradle? I've read a few articles on the internet saying so.
👌 2
s
Yeah should still be slower afaik
c
It is slightly slower, but in my experience the difference is small enough that I still use the Kotlin DSL everywhere. However, migrating away from buildSrc for dependencies made a huge difference.
👍 2
a
Hmm. I don't use
buildSrc
anyway. So I guess migrating to kotlin will just slow down an already slow build. Okay, thanks for the information. You saved me migrating and migrating back again.
c
I don't think the Kotlin DSL will ever be faster to build than Groovy, because of the nature of the language. However, Kotlin build.gradle.kts are much easier to write and maintain, so I'm sticking with them
In my case, the build is fast enough that the difference isn't an issue (apart from the first build of the day, builds never take more than ~5 seconds)
a
My build scripts are fairly simple currently. But should they increase in complexity I'll give kotlin a go for sure.