after update amper to 0.5.0, I'm having this Issue...
# amper
m
after update amper to 0.5.0, I'm having this Issue with KSP gradle plugin:
Copy code
> Task :konnection:kspTestKotlinIosArm64 FAILED
e: -api-version (2.0) cannot be greater than -language-version (1.9)
My build.gradle.kts file is like this:
Copy code
plugins {
    kotlin("multiplatform")
    id("com.google.devtools.ksp") version "2.0.21-1.0.26"
}
1
j
In Amper 0.5.0, the default
languageVersion
for Kotlin was bumped to 2.0 (and by ricochet, the
apiVersion
too, because its default is the value of
languageVersion
). The KSP Gradle plugin apparently doesn't support language version 2.0 in your case. You can override the value in your
module.yaml
to bring back the old behavior:
Copy code
settings:
  kotlin:
    languageVersion: 1.9
(by default, the
apiVersion
will be the same as the
languageVersion
, so 1.9 too)
m
got it, this change solved the Issue, thank you 👍
j
Cool. And thanks for bringing this up, I think I should put this in the breaking changes section
I moved this issue to a new
Breaking changes
section in the release notes, so people don't miss it: https://github.com/JetBrains/amper/releases/tag/v0.5.0 Thanks again for the feedback / question!
👍 1