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
Stylianos Gakis
09/27/2021, 9:19 AM
Yeah should still be slower afaik
c
CLOVIS
09/27/2021, 11:38 AM
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
adjpd
09/27/2021, 4:13 PM
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
CLOVIS
09/27/2021, 6:17 PM
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
CLOVIS
09/27/2021, 6:17 PM
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
adjpd
09/27/2021, 6:22 PM
My build scripts are fairly simple currently. But should they increase in complexity I'll give kotlin a go for sure.