From 23d1e2629e33fc3a7ee280d2a7b48caee0a34182 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Thu, 14 Nov 2024 09:02:51 +0800 Subject: [PATCH] Use Java 17 toolchain Closes gh-26 --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 3ce80f0..be8d444 100644 --- a/build.gradle +++ b/build.gradle @@ -68,9 +68,6 @@ subprojects { project-> apply plugin: 'org.graceframework.grace-plugin' } - sourceCompatibility = 17 - targetCompatibility = 17 - repositories { // mavenLocal() mavenCentral() @@ -115,6 +112,9 @@ subprojects { project-> } java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } withJavadocJar() withSourcesJar() }