From 0af0d84cf747b33e7a9687bb09c1016ee7da4644 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 25 Nov 2021 18:23:18 +0100 Subject: [PATCH] build: Set kotlin jvm toolchain --- buildSrc/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index cf95eca21..bc9685e0a 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -30,3 +30,9 @@ dependencies { implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.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)) + } +}