https://kotlinlang.org logo
#amper
Title
# amper
j

JG

11/21/2023, 6:58 AM
we can set the language version in amper but how to set the compiler version? for example, how do i make it use the kotlin 2 beta compiler?
z

zsmb

11/21/2023, 8:02 AM
With Amper you're on Kotlin 1.9.20 (as described here), so setting the language version to
2.0
is the way to try K2: https://kotlinlang.org/docs/whatsnew1920.html#how-to-enable-the-kotlin-k2-compiler So in Amper:
Copy code
settings:
  kotlin:
      languageVersion: 2.0
j

JG

11/21/2023, 9:11 AM
yeah i checked that it was on 1.9.20 but are there no plans to support switching versions anytime soon? 2.0 is a big milestone so i would have hoped for it to get supported asap. [i really dislike gradle and can't wait to get away from it. although my problem is with with the gradle backend as well not just the frontend]
4 Views