From 99af5327df2adac3a330b88900d1604fa07aa619 Mon Sep 17 00:00:00 2001 From: "Josiah (Gaming32) Glosson" Date: Fri, 3 May 2024 14:57:02 -0500 Subject: [PATCH] Explicitly compile with Java 17 --- version.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/version.gradle.kts b/version.gradle.kts index 6f98285..048ad7f 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -275,6 +275,12 @@ dependencies { java { withSourcesJar() + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} + +tasks.compileJava { + options.release = 17 } preprocess {