build: Set kotlin jvm toolchain

This commit is contained in:
NotMyFault 2021-11-25 18:23:18 +01:00
parent 22f52fc4e1
commit 0af0d84cf7
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -30,3 +30,9 @@ dependencies {
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0") implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0")
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.2.0") implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.2.0")
} }
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17))
}
}