Open MV-GH opened 1 year ago
If possible, please link me a sample project to see everything for myself. And also provide the JDK version you used. In general, Konvert is working with JDKs below 17, but the used JDK to build must be at least 17 at the moment.
Well its the build JDK I meant.
The sample build.gradle.kts is, the project is just default from Intellji
plugins {
kotlin("jvm") version "1.9.10"
id("com.google.devtools.ksp").version("1.9.10-1.0.13")
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
val konvertVersion = "2.3.0"
repositories {
mavenCentral()
}
dependencies {
implementation("io.mcarle:konvert-api:2.3.0")
testImplementation(kotlin("test"))
}
dependencies{
ksp("io.mcarle:konvert:2.3.0")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(11)
}
application {
mainClass.set("MainKt")
}
kotlin {
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
}
sourceSets.test {
kotlin.srcDir("build/generated/ksp/test/kotlin")
}
}
Hm, ok, I can reproduce this. Probably it is some feature of Gradle which I am not aware of :smile: I tried it with maven: as long as my JDK is at least 17, it is working as expected.
I will probably not go down to JDK11, as it is EOL (at least for most people not willing to pay) and now even JDK17 is not the current LTS release anymore with JDK21.
This is the error you get for using in targets below jdk 17