From ed12e789f6152ae19cabcf03d627637441d7bd38 Mon Sep 17 00:00:00 2001 From: darksaid98 Date: Thu, 22 Feb 2024 18:45:21 +0100 Subject: [PATCH] build: change java toolchain definition --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 32a27b1..c368f20 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ description = "" val mainPackage = "${project.group}.${rootProject.name.lowercase()}" java { - toolchain.languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_17.majorVersion)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example. + toolchain.languageVersion.set(JavaLanguageVersion.of(17)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example. // withJavadocJar() // NOTE: Use if you want to generate javadocs for your plugin }