build: Set target bytecode level to JVM 11

This commit is contained in:
oSumAtrIX 2024-03-04 19:15:07 +01:00
parent bebb734608
commit ea26c486c0

View file

@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins { plugins {
alias(libs.plugins.kotlin) alias(libs.plugins.kotlin)
alias(libs.plugins.binary.compatibility.validator) alias(libs.plugins.binary.compatibility.validator)
@ -52,7 +54,13 @@ dependencies {
} }
kotlin { kotlin {
jvmToolchain(11) compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
java {
targetCompatibility = JavaVersion.VERSION_11
} }
publishing { publishing {