From 74e7147c318711f574f940e41c94380987278c4c Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Mon, 2 Dec 2024 21:49:32 -0500 Subject: [PATCH] Compile with Java 17 compatibility (#43) --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index d09a147..303e4a1 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,11 @@ if (project.hasProperty('releaseMode')) { wpilibRepositories.addAllDevelopmentRepositories(project) } +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} + // Apply C++ configuration apply from: 'config.gradle'