build: Set target bytecode level to JVM 11

This commit is contained in:
oSumAtrIX 2024-03-04 19:15:08 +01:00
parent a5a5085f0f
commit 1e92239616
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
1 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.shadow)
@ -35,7 +37,15 @@ dependencies {
testImplementation(libs.kotlin.test)
}
kotlin { jvmToolchain(11) }
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
java {
targetCompatibility = JavaVersion.VERSION_11
}
tasks {
test {