whats the easiest way to use kotlin 2.0 in my ampe...
# amper
c
whats the easiest way to use kotlin 2.0 in my amper project?
j
Do you mean in a standalone Amper project? Or are you using Amper via the Gradle plugin?
c
I’m using both, so a solution that works with both would be perfect
j
Technically, Amper 0.3.0 already uses the Kotlin compiler version 2.0.0. However, we use language version 1.9 by default, which means it doesn't really use Kotlin 2.0. The easiest way to change this is to set the language version to 2.0 via
settings.kotlin.languageVersion
.
However, you will likely have problems with this when using Amper on its own. Proper support for 2.0 will arrive in the next Amper release, as I recently fixed it in master.
c
in gradle my dependencyUpdates plugin shows that I use 2.0.0-rc3
🤔 1
its not a big deal if its fixed in the next version 🙂
j
Oh, that might be an oversight. We will likely release a 0.3.1 with Kotlin 2.0.0 (release). I'll discuss with the team
c
perfect. will that also contain your 2.0 fix from master?
j
No that one will likely be in a 0.4.0, as it comes with bigger changes