@@ -1004,6 +1004,8 @@ project(':server') {
10041004 archivesName = " kafka-server"
10051005 }
10061006
1007+ apply plugin : ' java-test-fixtures'
1008+
10071009 dependencies {
10081010 compileOnly libs. bndlib
10091011 compileOnly libs. spotbugs
@@ -1033,6 +1035,13 @@ project(':server') {
10331035 testImplementation project(' :test-common:test-common-runtime' )
10341036 testImplementation testFixtures(project(' :storage:storage-api' ))
10351037 testImplementation testFixtures(project(' :server-common' ))
1038+ testImplementation testFixtures(project(' :metadata' ))
1039+
1040+ testFixturesImplementation project(' :clients' )
1041+ testFixturesImplementation testFixtures(project(' :clients' ))
1042+ testFixturesImplementation project(' :metadata' )
1043+ testFixturesImplementation project(' :server-common' )
1044+ testFixturesImplementation libs. junitJupiter
10361045
10371046 testRuntimeOnly runtimeTestLibs
10381047 }
@@ -1152,7 +1161,7 @@ project(':core') {
11521161 testImplementation testFixtures(project(' :raft' ))
11531162 testImplementation testFixtures(project(' :server-common' ))
11541163 testImplementation testFixtures(project(' :storage:storage-api' ))
1155- testImplementation project(' :server' ). sourceSets . test . output
1164+ testImplementation testFixtures( project(' :server' ))
11561165 testImplementation project(' :streams' )
11571166 testImplementation project(' :test-common:test-common-runtime' )
11581167 testImplementation project(' :test-common:test-common-internal-api' )
@@ -2430,6 +2439,8 @@ project(':storage') {
24302439 archivesName = " kafka-storage"
24312440 }
24322441
2442+ apply plugin : ' java-test-fixtures'
2443+
24332444 configurations {
24342445 generator
24352446 }
@@ -2446,17 +2457,25 @@ project(':storage') {
24462457 implementation libs. jacksonDatabind
24472458 implementation libs. metrics
24482459
2460+ testFixturesImplementation project(' :storage:storage-api' )
2461+ testFixturesImplementation project(' :clients' )
2462+ testFixturesImplementation testFixtures(project(' :clients' ))
2463+ testFixturesImplementation project(' :server-common' )
2464+ testFixturesImplementation libs. slf4jApi
2465+
24492466 testImplementation project(' :clients' )
24502467 testImplementation testFixtures(project(' :clients' ))
24512468 testImplementation project(' :core' )
24522469 testImplementation project(' :core' ). sourceSets. test. output
24532470 testImplementation testFixtures(project(' :storage:storage-api' ))
2471+ testImplementation project(' :metadata' )
24542472 testImplementation project(' :test-common:test-common-internal-api' )
24552473 testImplementation project(' :test-common:test-common-runtime' )
24562474 testImplementation project(' :test-common:test-common-util' )
24572475 testImplementation project(' :server' )
24582476 testImplementation project(' :server-common' )
24592477 testImplementation testFixtures(project(' :server-common' ))
2478+ testImplementation testFixtures(project(' :metadata' ))
24602479 testImplementation project(' :transaction-coordinator' )
24612480 testImplementation libs. hamcrest
24622481 testImplementation libs. jacksonDataformatYaml
@@ -2608,6 +2627,12 @@ project(':tools') {
26082627
26092628 configurations {
26102629 releaseOnly
2630+ // ApacheDS 2.0.0-M24 pulls in the stale bcprov-jdk15on:1.56, which ships the same
2631+ // RosstandartObjectIdentifiers class as the modern bcprov-jdk18on we already depend on
2632+ // but is missing fields referenced by bcpkix-jdk18on:1.84. When IntelliJ's test runner
2633+ // orders the old JAR first, BC provider registration fails with NoSuchFieldError. Drop it.
2634+ testCompileClasspath. exclude group : ' org.bouncycastle' , module : ' bcprov-jdk15on'
2635+ testRuntimeClasspath. exclude group : ' org.bouncycastle' , module : ' bcprov-jdk15on'
26112636 }
26122637
26132638 dependencies {
@@ -2642,8 +2667,8 @@ project(':tools') {
26422667 testImplementation project(' :clients' )
26432668 testImplementation testFixtures(project(' :clients' ))
26442669 testImplementation project(' :server' )
2645- testImplementation project(' :server' ). sourceSets. test. output
26462670 testImplementation project(' :core' )
2671+ testImplementation testFixtures(project(' :server' ))
26472672 testImplementation project(' :core' ). sourceSets. test. output
26482673 testImplementation project(' :test-common:test-common-internal-api' )
26492674 testImplementation project(' :test-common:test-common-runtime' )
@@ -2653,7 +2678,7 @@ project(':tools') {
26532678 testImplementation project(' :connect:runtime' )
26542679 testImplementation project(' :connect:runtime' ). sourceSets. test. output
26552680 testImplementation project(' :storage:storage-api' ). sourceSets. main. output
2656- testImplementation project(' :storage' ). sourceSets . test . output
2681+ testImplementation testFixtures( project(' :storage' ))
26572682 testImplementation project(' :streams' )
26582683 testImplementation project(' :streams' ). sourceSets. test. output
26592684 testImplementation project(' :streams:integration-tests' ). sourceSets. test. output
@@ -3552,7 +3577,6 @@ project(':jmh-benchmarks') {
35523577 implementation testFixtures(project(' :clients' ))
35533578 implementation testFixtures(project(' :server-common' ))
35543579 implementation testFixtures(project(' :metadata' ))
3555- implementation project(' :server' ). sourceSets. test. output
35563580
35573581 implementation libs. jmhCore
35583582 annotationProcessor libs. jmhGeneratorAnnProcess
@@ -4117,8 +4141,10 @@ gradle.projectsEvaluated {
41174141 def protectedModules = [
41184142 ' clients' : ' :clients' ,
41194143 ' server-common' : ' :server-common' ,
4144+ ' server' : ' :server' ,
41204145 ' storage/api' : ' :storage:storage-api' ,
41214146 ' coordinator-common' : ' :coordinator-common' ,
4147+ ' storage' : ' :storage' ,
41224148 ' group-coordinator' : ' :group-coordinator' ,
41234149 ' share-coordinator' : ' :share-coordinator' ,
41244150 ' metadata' : ' :metadata' ,
0 commit comments