You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2024/12/11 23:39:53 UTC
(kafka) branch trunk updated: KAFKA-18186 Set `options.release` to make Intellij configure suitable language level automatically (#18104)
This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new 010b9ff6c62 KAFKA-18186 Set `options.release` to make Intellij configure suitable language level automatically (#18104)
010b9ff6c62 is described below
commit 010b9ff6c6237418d5c9e35984f57a8928912360
Author: Ken Huang <s7...@gmail.com>
AuthorDate: Thu Dec 12 07:39:46 2024 +0800
KAFKA-18186 Set `options.release` to make Intellij configure suitable language level automatically (#18104)
Reviewers: "A. Sophie Blee-Goldman" <ab...@gmail.com>, Chia-Ping Tsai <ch...@gmail.com>
---
build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index 474f5b5f73b..51a6658f1be 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"