Eric Ou
12/14/2022, 10:28 AMjava.lang.IllegalStateException: Version of the generated module should not be incompatible: 1.9.0
at org.jetbrains.kotlin.load.kotlin.incremental.IncrementalPackagePartProvider$moduleMappings$2$1$1.invoke(IncrementalPackagePartProvider.kt:45)
at org.jetbrains.kotlin.load.kotlin.incremental.IncrementalPackagePartProvider$moduleMappings$2$1$1.invoke(IncrementalPackagePartProvider.kt:43)
From the error, it seems like it's something to do with me setting the language version to 1.9 (for data objects), so here is that as well
plugins {
kotlin("jvm") version "1.7.22"
}
repositories {
mavenCentral()
}
tasks {
sourceSets {
main {
java.srcDirs("src")
}
}
wrapper {
gradleVersion = "7.6"
}
compileKotlin {
kotlinOptions {
languageVersion = "1.9"
jvmTarget = "18"
useK2 = true
}
}
}
dependencies {
// Add kotlinx.serialization to the project
implementation(kotlin("reflect"))
}
P.S. Got it when doing the AoC so be ware of spoilers if I do attach the project.Eric Ou
12/14/2022, 10:37 AMAlexey Belkov [JB]
12/14/2022, 10:45 AMEric Ou
12/14/2022, 10:46 AM