Is it possible to use java 21 and the newest PaperAPI, but compile to java 17 to achieve backwards compatibility?
This works when using the newest SpigotAPI, but I want to migrate to the PaperAPI.
Code:
compileJava {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
sourceCompatibility = "17"
targetCompatibility = "17"
}
compileKotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
}
This works when using the newest SpigotAPI, but I want to migrate to the PaperAPI.