kosi-libs / MocKMP

A mocking processor for Kotlin Multiplatform
https://kosi-libs.org/mockmp
MIT License
183 stars 12 forks source link

Kotlin 1.8 support #46

Closed jdamcd closed 1 year ago

jdamcd commented 1 year ago

Plugin version 1.11.0 produces the following error in a project using Kotlin 1.8:

Unable to find method ''void org.jetbrains.kotlin.gradle.tasks.KotlinCompile.<init>(org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions, org.gradle.workers.WorkerExecutor, org.gradle.api.model.ObjectFactory)''
'void org.jetbrains.kotlin.gradle.tasks.KotlinCompile.<init>(org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions, org.gradle.workers.WorkerExecutor, org.gradle.api.model.ObjectFactory)'

I checked out an old Kotlin 1.7.20 commit of the same project and everything looks good.

SalomonBrys commented 1 year ago

This issue is currently preventing us from supporting Kotlin 1.8: https://youtrack.jetbrains.com/issue/KT-55720 We are waiting on its resolution.

SalomonBrys commented 1 year ago

MocKMP 1.12.0 is compiled with Kotlin 1.8. Note that you may need to add:

kotlin.incremental.js.ir=false

If you are mocking suspend functions in JS.