diff --git a/build.gradle b/build.gradle index 7cb490cf4..78077dc02 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,12 @@ allprojects { dependencyUpdates.rejectVersionIf { isNonStable(it.candidate.version) } - java.withSourcesJar() + java { + withSourcesJar() + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } + } test { useJUnitPlatform()