Chia-Ping Tsai created KAFKA-17881:
--------------------------------------
Summary: Apply the minJavaVersion to test code
Key: KAFKA-17881
URL: https://issues.apache.org/jira/browse/KAFKA-17881
Project: Kafka
Issue Type: Bug
Reporter: Chia-Ping Tsai
Assignee: Chia-Chuan Yu
KAFKA-16564 move all java configs to the `configureJavaCompiler`, but it did
not add minJavaVersion to the test scope.
{color:#cf8e6d}if {color}(name == {color:#6aab73}"compileTestJava" {color}||
name == {color:#6aab73}"compileTestScala"{color}) {
options.compilerArgs << {color:#6aab73}"-parameters"{color}
{color:#6aab73}// we need following change
{color}{color:#6aab73} {color}options.compilerArgs +=
[{color:#6aab73}"--release"{color}, String.valueOf(minJavaVersion)]
} {color:#cf8e6d}else if {color}(name == {color:#6aab73}"compileJava" {color}||
name == {color:#6aab73}"compileScala"{color}) {
--
This message was sent by Atlassian Jira
(v8.20.10#820010)