Skip to content

Commit

Permalink
build: Set target bytecode level to JVM 11
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Mar 4, 2024
1 parent a5a5085 commit 1e92239
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.shadow)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1e92239

Please sign in to comment.