Skip to content

Commit

Permalink
KAFKA-18186 Set options.release to make Intellij configure suitable…
Browse files Browse the repository at this point in the history
… language level automatically (#18104)

Reviewers: "A. Sophie Blee-Goldman" <[email protected]>, Chia-Ping Tsai <[email protected]>
  • Loading branch information
m1a2st authored Dec 11, 2024
1 parent f4fe606 commit 010b9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 010b9ff

Please sign in to comment.