In my gradle file I have ```tasks { withType&l...
# gradle
m
In my gradle file I have
Copy code
tasks {
    withType<JavaCompile> {
        sourceCompatibility = "11"
        targetCompatibility = "11"
    }

    withType<KotlinCompile> {
        compilerOptions {
            jvmTarget = JvmTarget.JVM_11
        }
    }
}
But I still get a lot of errors relating to class versions:
2024-11-13 17:35:27.829 XRebel: ERROR Class 'io.ktor.server.engine.EngineContextCancellationHelperKt' could not be processed by com.zeroturnaround.xrebel.aP@null: java.lang.IllegalArgumentException: Unsupported class file major version 65
Am I missing a setting?
v
According to the message rebel - whatever that is - can't process calls compiled for Java 21, but your ktor dependency contains classes compiled for Java 21. No setting in your build script will change that, except using a ktor version not having Java 21 class files or using an xrebel version that can process then