From 010b9ff6c6237418d5c9e35984f57a8928912360 Mon Sep 17 00:00:00 2001 From: Ken Huang Date: Thu, 12 Dec 2024 07:39:46 +0800 Subject: [PATCH] KAFKA-18186 Set `options.release` to make Intellij configure suitable language level automatically (#18104) Reviewers: "A. Sophie Blee-Goldman" , Chia-Ping Tsai --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 474f5b5f73b80..51a6658f1bea8 100644 --- a/build.gradle +++ b/build.gradle @@ -124,7 +124,7 @@ ext { def releaseVersion = modulesNeedingJava11.any { projectPath == it } ? minClientJavaVersion : minNonClientJavaVersion options.compilerArgs << "-encoding" << "UTF-8" - options.compilerArgs += ["--release", String.valueOf(releaseVersion)] + options.release = releaseVersion if (name in ["compileTestJava", "compileTestScala"]) { options.compilerArgs << "-parameters"