Skip to content

Commit

Permalink
KAFKA-18242 The java code in core module is NOT configured with suita…
Browse files Browse the repository at this point in the history
…ble release version (apache#18182)

Reviewers: Ken Huang <[email protected]>, Chia-Ping Tsai <[email protected]>
  • Loading branch information
frankvicky authored Dec 14, 2024
1 parent 139e5b1 commit e41373c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,11 @@ subprojects {
scalaCompileOptions.additionalParameters += ["-Xfatal-warnings"]
scalaCompileOptions.additionalParameters += ["--release", String.valueOf(releaseVersion)]

// Gradle does not support the `release` configuration when performing joint Java-Scala compilation.
// For more details, refer to https://github.com/gradle/gradle/issues/13762.
// As a result, we need to explicitly configure the Scala compiler with this setting.
options.compilerArgs += ["--release", String.valueOf(releaseVersion)]

configureJavaCompiler(name, options, project.path)

configure(scalaCompileOptions.forkOptions) {
Expand Down

0 comments on commit e41373c

Please sign in to comment.