Not sure if only specific to the current project I am working on, but updating to Kotlin from 1.8.22 to 2.0.21 decreased the built time in a clean build from ~*6:00* minutes to ~*4:00* minutes.
🙀 wow, this is crazy fast. I still can’t believe it. I am performing some tests to make sure everything is ok but it is really impressive. It is a big project with ~30% still in java, data-binding, view-binding, Fragments, Compose everything you might think of.
👍 3
❤️ 1
Pablichjenkov
06/24/2025, 9:41 PM
I was aiming initially to go for Kotlin version 1.9.25 but after seeing this I am jumping directly to 2.0.21.
Pablichjenkov
06/24/2025, 10:03 PM
Valid to mention also upgraded Gradle and AGP, this might have helped.
e
eygraber
06/24/2025, 10:51 PM
Out of curiosity, why not 2.2.0?
p
Pablichjenkov
06/24/2025, 10:57 PM
I like small steps 😀. I wait a few months for stability then continue. Also by experience, I prefer being 1 or even 2 releases behind the latest and greatest, just for safety.
Usually preventing issues due to incompatibility of 3rd party libraries not compatible with the latest language version and such. This rule just does not apply to kotlin but any language.
👍 2
m
Michael Paus
06/25/2025, 6:00 AM
Sometimes the opposite is true too. I just had to switch to the latest Kotlin 2.2.0 in a project, which I actually did not want to update at the moment, because I got runtime exceptions in wasmJs release builds with the predecessors.