@@ -114,6 +114,13 @@ ext {
114
114
repo = file(" $rootDir /.git" ). isDirectory() ? Grgit . open(currentDir : project. getRootDir()) : null
115
115
116
116
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
+ }
117
124
}
118
125
119
126
allprojects {
@@ -278,11 +285,9 @@ subprojects {
278
285
// --source/--target 8 is deprecated in Java 20, suppress warning until Java 8 support is dropped in Kafka 4.0
279
286
if (JavaVersion . current(). isCompatibleWith(JavaVersion . VERSION_20 ))
280
287
options. compilerArgs << " -Xlint:-options"
281
- }
282
288
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
+ }
286
291
287
292
// We should only set this if Java version is < 9 (--release is recommended for >= 9), but the Scala plugin for IntelliJ sets
288
293
// `-target` incorrectly if this is unset
@@ -703,6 +708,8 @@ subprojects {
703
708
if (versions. baseScala == " 2.13" || JavaVersion . current(). isJava9Compatible())
704
709
scalaCompileOptions. additionalParameters + = [" -release" , String . valueOf(minJavaVersion)]
705
710
711
+ addParametersForTests(name, options)
712
+
706
713
configure(scalaCompileOptions. forkOptions) {
707
714
memoryMaximumSize = defaultMaxHeapSize
708
715
jvmArgs = defaultJvmArgs
@@ -1837,6 +1844,7 @@ project(':storage') {
1837
1844
testImplementation project(' :clients' ). sourceSets. test. output
1838
1845
testImplementation project(' :core' )
1839
1846
testImplementation project(' :core' ). sourceSets. test. output
1847
+ testImplementation project(' :server' )
1840
1848
testImplementation project(' :server-common' )
1841
1849
testImplementation project(' :server-common' ). sourceSets. test. output
1842
1850
testImplementation libs. hamcrest
@@ -2025,6 +2033,7 @@ project(':tools') {
2025
2033
testImplementation project(' :connect:runtime' )
2026
2034
testImplementation project(' :connect:runtime' ). sourceSets. test. output
2027
2035
testImplementation project(' :storage:storage-api' ). sourceSets. main. output
2036
+ testImplementation project(' :group-coordinator' )
2028
2037
testImplementation libs. junitJupiter
2029
2038
testImplementation libs. mockitoCore
2030
2039
testImplementation libs. mockitoJunitJupiter // supports MockitoExtension
@@ -2177,10 +2186,13 @@ project(':streams') {
2177
2186
testCompileOnly project(' :streams:test-utils' )
2178
2187
2179
2188
testImplementation project(' :clients' ). sourceSets. test. output
2189
+ testImplementation project(' :server' )
2180
2190
testImplementation project(' :core' )
2181
2191
testImplementation project(' :tools' )
2182
2192
testImplementation project(' :core' ). sourceSets. test. output
2183
2193
testImplementation project(' :storage' )
2194
+ testImplementation project(' :group-coordinator' )
2195
+ testImplementation project(' :transaction-coordinator' )
2184
2196
testImplementation project(' :server-common' )
2185
2197
testImplementation project(' :server-common' ). sourceSets. test. output
2186
2198
testImplementation project(' :server' )
@@ -2192,6 +2204,7 @@ project(':streams') {
2192
2204
testImplementation libs. hamcrest
2193
2205
testImplementation libs. mockitoCore
2194
2206
testImplementation libs. mockitoJunitJupiter // supports MockitoExtension
2207
+ testImplementation project(' :group-coordinator' )
2195
2208
2196
2209
testRuntimeOnly project(' :streams:test-utils' )
2197
2210
testRuntimeOnly libs. slf4jlog4j
@@ -2328,6 +2341,7 @@ project(':streams:streams-scala') {
2328
2341
// So we make sure to not include it in the dependencies.
2329
2342
api libs. scalaCollectionCompat
2330
2343
}
2344
+ testImplementation project(' :group-coordinator' )
2331
2345
testImplementation project(' :core' )
2332
2346
testImplementation project(' :core' ). sourceSets. test. output
2333
2347
testImplementation project(' :server-common' ). sourceSets. test. output
@@ -2991,12 +3005,15 @@ project(':connect:runtime') {
2991
3005
2992
3006
testImplementation project(' :clients' ). sourceSets. test. output
2993
3007
testImplementation project(' :core' )
3008
+ testImplementation project(' :server' )
2994
3009
testImplementation project(' :metadata' )
2995
3010
testImplementation project(' :core' ). sourceSets. test. output
2996
3011
testImplementation project(' :server-common' )
2997
3012
testImplementation project(' :server' )
3013
+ testImplementation project(' :group-coordinator' )
2998
3014
testImplementation project(' :storage' )
2999
3015
testImplementation project(' :connect:test-plugins' )
3016
+ testImplementation project(' :group-coordinator' )
3000
3017
3001
3018
testImplementation libs. easymock
3002
3019
testImplementation libs. junitJupiterApi
@@ -3207,6 +3224,7 @@ project(':connect:mirror') {
3207
3224
testImplementation project(' :connect:runtime' ). sourceSets. test. output
3208
3225
testImplementation project(' :core' )
3209
3226
testImplementation project(' :core' ). sourceSets. test. output
3227
+ testImplementation project(' :server' )
3210
3228
3211
3229
testRuntimeOnly project(' :connect:runtime' )
3212
3230
testRuntimeOnly libs. slf4jlog4j
0 commit comments