Open tieskedh opened 1 year ago
thanks for informing me,
can i have your build.gradle
file as a reference?
@tieskedh
Mu current build.gradle file is:
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("multiplatform")
}
kotlin{
jvm{
jvmToolchain(8)
}
sourceSets{
val commonMain by getting{
dependencies {
implementation(kotlin("stdlib-common"))
implementation("app.softwork:kotlinx-uuid-core:0.0.18")
implementation("io.insert-koin:koin-core:3.4.0")
api("com.github.nort3x:event4k:1.0.0") {
exclude(module = "event4k-native")
}
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-RC")
}
}
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=nl.scauting.port.IAmForPorts"
}
}
group = "nl.scauting"
version = "1.0"
With Kotlin being version "1.8.20"
Hello,
I encountered an issue while using the event4k library in my Kotlin Multiplatform project. My project is targeting the JVM platform, but I noticed that there's a transitive dependency on event4k-native, which causes the build to fail. Here's the error message I encountered:
By excluding the event4k-native dependency from my project, I was able to resolve this issue:
Could you please look into this issue and consider updating the library to exclude the event4k-native dependency for JVM targets or provide an alternative compatible dependency?
Thank you!
Ps. ChatGPT4 diagnosed and recommended the update-request.