Hi guys, I met a problem. I try to upgrade version...
# ksp
y
Hi guys, I met a problem. I try to upgrade version of Kotlin (1.7.20 -> 1.8.20) and version of KSP (1.7.20-1.0.8 -> 1.8.20-1.0.11) on my Kotlin Multiplatform project, and when I execute the unit tests of
macosX64
that depends on a KSP module, I got a build error:
Copy code
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.jvm']
> Failed to apply plugin 'org.jetbrains.kotlin.jvm'.
   > Gradle#projectsEvaluated(Action) on build 'SQLlin' cannot be executed in the current context.
The detail is here: https://github.com/qiaoyuang/SQLlin/actions/runs/4902155422/jobs/8753830437 The way that I execute the unit tests:
Copy code
./gradlew :sqllin-dsl:cleanMacosX64Test
./gradlew :sqllin-dsl:macosX64Test --stacktrace
You can get the upgraded code here: https://github.com/qiaoyuang/SQLlin And you can get the code that haven't upgraded here: https://github.com/ctripcorp/SQLlin Can you tell me how can I fix this problem, Please.😭
f
Hi there. I ran into a similar issue, and in my case the culprit was
org.gradle.configureondemand=true
. Try removing that from your
gradle.properties
file to see if it helps
y
It's working now! Thank you very much!