Shannon Duncan
03/07/2021, 7:17 PMcompile("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
however I don't know where in the build.gradle.kts file to put it.
When running the jar in JVM right now I get the error : java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
william
03/07/2021, 8:56 PMShannon Duncan
03/07/2021, 10:28 PMplugins {
kotlin("multiplatform") version "1.4.31"
}
group = "com.company.id"
version = "0.0.2-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
jvm() {
withJava()
}
macosX64("native") {
binaries {
framework {
baseName = "LRNB"
}
sharedLib {
baseName = "LRNB"
}
}
}
sourceSets {
val commonMain by getting
val commonTest by getting {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-test-annotations-common")
implementation("org.jetbrains.kotlin:kotlin-test-common")
}
}
val nativeMain by getting {
// kotlin.srcDir("src/nativeMain/kotlin")
dependsOn(commonMain)
}
val nativeTest by getting
val jvmMain by getting {
dependsOn(commonMain)
}
val jvmTest by getting {
dependencies {
implementation("junit:junit:4.12")
implementation("org.jetbrains.kotlin:kotlin-test-junit")
}
}
}
}