@@ -114,6 +114,13 @@ ext {
114114 repo = file(" $rootDir /.git" ). isDirectory() ? Grgit . open(currentDir : project. getRootDir()) : null
115115
116116 commitId = determineCommitId()
117+
118+ addParametersForTests = { name , options ->
119+ // -parameters generates arguments with parameter names in TestInfo#getDisplayName.
120+ // ref: https://github.com/junit-team/junit5/blob/4c0dddad1b96d4a20e92a2cd583954643ac56ac0/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTest.java#L161-L164
121+ if (name == " compileTestJava" || name == " compileTestScala" )
122+ options. compilerArgs << " -parameters"
123+ }
117124}
118125
119126allprojects {
@@ -278,11 +285,9 @@ subprojects {
278285 // --source/--target 8 is deprecated in Java 20, suppress warning until Java 8 support is dropped in Kafka 4.0
279286 if (JavaVersion . current(). isCompatibleWith(JavaVersion . VERSION_20 ))
280287 options. compilerArgs << " -Xlint:-options"
281- }
282288
283- // -parameters generates arguments with parameter names in TestInfo#getDisplayName.
284- // ref: https://github.com/junit-team/junit5/blob/4c0dddad1b96d4a20e92a2cd583954643ac56ac0/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTest.java#L161-L164
285- compileTestJava. options. compilerArgs. add " -parameters"
289+ addParametersForTests(name, options)
290+ }
286291
287292 // We should only set this if Java version is < 9 (--release is recommended for >= 9), but the Scala plugin for IntelliJ sets
288293 // `-target` incorrectly if this is unset
@@ -703,6 +708,8 @@ subprojects {
703708 if (versions. baseScala == " 2.13" || JavaVersion . current(). isJava9Compatible())
704709 scalaCompileOptions. additionalParameters + = [" -release" , String . valueOf(minJavaVersion)]
705710
711+ addParametersForTests(name, options)
712+
706713 configure(scalaCompileOptions. forkOptions) {
707714 memoryMaximumSize = defaultMaxHeapSize
708715 jvmArgs = defaultJvmArgs
@@ -1837,6 +1844,7 @@ project(':storage') {
18371844 testImplementation project(' :clients' ). sourceSets. test. output
18381845 testImplementation project(' :core' )
18391846 testImplementation project(' :core' ). sourceSets. test. output
1847+ testImplementation project(' :server' )
18401848 testImplementation project(' :server-common' )
18411849 testImplementation project(' :server-common' ). sourceSets. test. output
18421850 testImplementation libs. hamcrest
@@ -2025,6 +2033,7 @@ project(':tools') {
20252033 testImplementation project(' :connect:runtime' )
20262034 testImplementation project(' :connect:runtime' ). sourceSets. test. output
20272035 testImplementation project(' :storage:storage-api' ). sourceSets. main. output
2036+ testImplementation project(' :group-coordinator' )
20282037 testImplementation libs. junitJupiter
20292038 testImplementation libs. mockitoCore
20302039 testImplementation libs. mockitoJunitJupiter // supports MockitoExtension
@@ -2177,10 +2186,13 @@ project(':streams') {
21772186 testCompileOnly project(' :streams:test-utils' )
21782187
21792188 testImplementation project(' :clients' ). sourceSets. test. output
2189+ testImplementation project(' :server' )
21802190 testImplementation project(' :core' )
21812191 testImplementation project(' :tools' )
21822192 testImplementation project(' :core' ). sourceSets. test. output
21832193 testImplementation project(' :storage' )
2194+ testImplementation project(' :group-coordinator' )
2195+ testImplementation project(' :transaction-coordinator' )
21842196 testImplementation project(' :server-common' )
21852197 testImplementation project(' :server-common' ). sourceSets. test. output
21862198 testImplementation project(' :server' )
@@ -2192,6 +2204,7 @@ project(':streams') {
21922204 testImplementation libs. hamcrest
21932205 testImplementation libs. mockitoCore
21942206 testImplementation libs. mockitoJunitJupiter // supports MockitoExtension
2207+ testImplementation project(' :group-coordinator' )
21952208
21962209 testRuntimeOnly project(' :streams:test-utils' )
21972210 testRuntimeOnly libs. slf4jlog4j
@@ -2328,6 +2341,7 @@ project(':streams:streams-scala') {
23282341 // So we make sure to not include it in the dependencies.
23292342 api libs. scalaCollectionCompat
23302343 }
2344+ testImplementation project(' :group-coordinator' )
23312345 testImplementation project(' :core' )
23322346 testImplementation project(' :core' ). sourceSets. test. output
23332347 testImplementation project(' :server-common' ). sourceSets. test. output
@@ -2991,12 +3005,15 @@ project(':connect:runtime') {
29913005
29923006 testImplementation project(' :clients' ). sourceSets. test. output
29933007 testImplementation project(' :core' )
3008+ testImplementation project(' :server' )
29943009 testImplementation project(' :metadata' )
29953010 testImplementation project(' :core' ). sourceSets. test. output
29963011 testImplementation project(' :server-common' )
29973012 testImplementation project(' :server' )
3013+ testImplementation project(' :group-coordinator' )
29983014 testImplementation project(' :storage' )
29993015 testImplementation project(' :connect:test-plugins' )
3016+ testImplementation project(' :group-coordinator' )
30003017
30013018 testImplementation libs. easymock
30023019 testImplementation libs. junitJupiterApi
@@ -3207,6 +3224,7 @@ project(':connect:mirror') {
32073224 testImplementation project(' :connect:runtime' ). sourceSets. test. output
32083225 testImplementation project(' :core' )
32093226 testImplementation project(' :core' ). sourceSets. test. output
3227+ testImplementation project(' :server' )
32103228
32113229 testRuntimeOnly project(' :connect:runtime' )
32123230 testRuntimeOnly libs. slf4jlog4j
0 commit comments