diff --git a/build.gradle b/build.gradle index 44d5845c..9aa0ebeb 100644 --- a/build.gradle +++ b/build.gradle @@ -134,8 +134,11 @@ subprojects { subproject -> apply from: "${rootProject.projectDir}/publish-maven.gradle" - sourceCompatibility=1.8 - targetCompatibility=1.8 + java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } + } [compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:none"] diff --git a/ide.gradle b/ide.gradle index 1778f112..72acc2ee 100644 --- a/ide.gradle +++ b/ide.gradle @@ -4,8 +4,8 @@ import org.gradle.plugins.ide.eclipse.model.SourceFolder apply plugin: "eclipse" eclipse.jdt { - sourceCompatibility = 1.8 - targetCompatibility = 1.8 + sourceCompatibility = 17 + targetCompatibility = 17 } // Replace classpath entries with project dependencies (GRADLE-1116)