Skip to content

Commit 6f6f46a

Browse files
build: address review feedback — prefer commonLibs and slf4j2 binding
- Move shared-catalog deps from localLibs to commonLibs: mockito-core, log4j-slf4j2-impl, grpc-netty, hypertrace-grpcutils-context. The BOM governs the versions there, so the local catalog only carries deps truly outside the shared catalog. - Switch the log4j binding to log4j-slf4j2-impl (the slf4j2 binding) per reviewer note — log4j-slf4j-impl was the slf4j-1.x binding and pulls in the wrong API. - Drop versions for kafka-bom-managed entries (avro, kafka-streams-avro- serde, kafka-streams-test-utils) — the kafka-bom platform constrains them. Lockfiles regenerated; resolved versions now follow the BOM (mockito 5.8.0, log4j-slf4j2-impl 2.25.4) instead of hand-pinned ones.
1 parent 5da595c commit 6f6f46a

9 files changed

Lines changed: 37 additions & 43 deletions

File tree

gradle/libs.versions.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
[versions]
2-
mockito = "5.15.2"
3-
log4j = "2.20.0"
42
caffeine = "3.1.8"
53
junit-pioneer = "2.3.0"
64
hypertrace-config = "0.1.73"
7-
hypertrace-grpcutils = "0.13.23"
8-
grpc = "1.68.1"
95
hypertrace-avro-plugin = "0.5.1"
106

11-
[plugins]
12-
hypertrace-avro = { id = "org.hypertrace.avro-plugin", version.ref = "hypertrace-avro-plugin" }
13-
147
[libraries]
158
junit-pioneer = { module = "org.junit-pioneer:junit-pioneer", version.ref = "junit-pioneer" }
16-
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
17-
log4j-slf4j-impl = { module = "org.apache.logging.log4j:log4j-slf4j-impl", version.ref = "log4j" }
189
hamcrest-core = { module = "org.hamcrest:hamcrest-core", version = "2.2" }
1910
caffeine = { module = "com.github.ben-manes.caffeine:caffeine", version.ref = "caffeine" }
2011
kafka-streams-avro-serde = { module = "io.confluent:kafka-streams-avro-serde" }
2112
kafka-streams-test-utils = { module = "org.apache.kafka:kafka-streams-test-utils" }
2213
avro = { module = "org.apache.avro:avro" }
23-
hypertrace-grpcutils-context = { module = "org.hypertrace.core.grpcutils:grpc-context-utils", version.ref = "hypertrace-grpcutils" }
2414
hypertrace-config-partitioner-api = { module = "org.hypertrace.config.service:partitioner-config-service-api", version.ref = "hypertrace-config" }
25-
grpc-netty = { module = "io.grpc:grpc-netty", version.ref = "grpc" }
15+
16+
[plugins]
17+
hypertrace-avro = { id = "org.hypertrace.avro-plugin", version.ref = "hypertrace-avro-plugin" }

kafka-event-listener/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616

1717
implementation(commonLibs.hypertrace.framework.metrics)
1818
testImplementation(commonLibs.junit.jupiter)
19-
testImplementation(localLibs.mockito.core)
19+
testImplementation(commonLibs.mockito.core)
2020
testImplementation(localLibs.caffeine)
2121

2222
testFixturesApi(platform(project(":kafka-bom")))

kafka-event-listener/gradle.lockfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ io.prometheus:simpleclient_tracer_common:0.16.0=runtimeClasspath,testRuntimeClas
3333
io.prometheus:simpleclient_tracer_otel:0.16.0=runtimeClasspath,testRuntimeClasspath
3434
io.prometheus:simpleclient_tracer_otel_agent:0.16.0=runtimeClasspath,testRuntimeClasspath
3535
jakarta.servlet:jakarta.servlet-api:6.1.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
36-
net.bytebuddy:byte-buddy-agent:1.15.11=testCompileClasspath,testRuntimeClasspath
37-
net.bytebuddy:byte-buddy:1.15.11=testCompileClasspath,testRuntimeClasspath
36+
net.bytebuddy:byte-buddy-agent:1.14.10=testCompileClasspath,testRuntimeClasspath
37+
net.bytebuddy:byte-buddy:1.14.10=testCompileClasspath,testRuntimeClasspath
3838
org.apache.kafka:kafka-clients:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3939
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
4040
org.checkerframework:checker-qual:3.33.0=runtimeClasspath
@@ -59,7 +59,7 @@ org.junit.platform:junit-platform-commons:1.10.0=testCompileClasspath,testRuntim
5959
org.junit.platform:junit-platform-engine:1.10.0=testRuntimeClasspath
6060
org.junit:junit-bom:5.10.0=testCompileClasspath,testRuntimeClasspath
6161
org.latencyutils:LatencyUtils:2.0.3=runtimeClasspath,testRuntimeClasspath
62-
org.mockito:mockito-core:5.15.2=testCompileClasspath,testRuntimeClasspath
62+
org.mockito:mockito-core:5.8.0=testCompileClasspath,testRuntimeClasspath
6363
org.objenesis:objenesis:3.3=testRuntimeClasspath
6464
org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
6565
org.projectlombok:lombok:1.18.30=annotationProcessor,compileClasspath

kafka-streams-framework/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ dependencies {
3232
testImplementation(localLibs.kafka.streams.test.utils)
3333
testImplementation(commonLibs.junit.jupiter)
3434
testImplementation(localLibs.junit.pioneer)
35-
testImplementation(localLibs.mockito.core)
35+
testImplementation(commonLibs.mockito.core)
3636
testImplementation(localLibs.hamcrest.core)
37-
testRuntimeOnly(localLibs.log4j.slf4j.impl)
37+
testRuntimeOnly(commonLibs.log4j.slf4j2.impl)
3838
}
3939

4040
// Disabling compatibility check for the test avro definitions.

kafka-streams-framework/gradle.lockfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ io.prometheus:simpleclient_tracer_otel:0.16.0=runtimeClasspath,testRuntimeClassp
6868
io.prometheus:simpleclient_tracer_otel_agent:0.16.0=runtimeClasspath,testRuntimeClasspath
6969
io.swagger.core.v3:swagger-annotations:2.1.10=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7070
jakarta.servlet:jakarta.servlet-api:6.1.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
71-
net.bytebuddy:byte-buddy-agent:1.15.11=testCompileClasspath,testRuntimeClasspath
72-
net.bytebuddy:byte-buddy:1.15.11=testCompileClasspath,testRuntimeClasspath
71+
net.bytebuddy:byte-buddy-agent:1.14.10=testCompileClasspath,testRuntimeClasspath
72+
net.bytebuddy:byte-buddy:1.14.10=testCompileClasspath,testRuntimeClasspath
7373
org.apache.avro:avro:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7474
org.apache.commons:commons-compress:1.26.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7575
org.apache.commons:commons-lang3:3.18.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -78,9 +78,9 @@ org.apache.httpcomponents:httpcore:4.4.13=runtimeClasspath,testRuntimeClasspath
7878
org.apache.kafka:kafka-clients:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7979
org.apache.kafka:kafka-streams-test-utils:7.7.0-ccs=testCompileClasspath,testRuntimeClasspath
8080
org.apache.kafka:kafka-streams:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
81-
org.apache.logging.log4j:log4j-api:2.20.0=testRuntimeClasspath
82-
org.apache.logging.log4j:log4j-core:2.20.0=testRuntimeClasspath
83-
org.apache.logging.log4j:log4j-slf4j-impl:2.20.0=testRuntimeClasspath
81+
org.apache.logging.log4j:log4j-api:2.25.4=testRuntimeClasspath
82+
org.apache.logging.log4j:log4j-core:2.25.4=testRuntimeClasspath
83+
org.apache.logging.log4j:log4j-slf4j2-impl:2.25.4=testRuntimeClasspath
8484
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
8585
org.checkerframework:checker-qual:3.33.0=compileClasspath,testCompileClasspath
8686
org.checkerframework:checker-qual:3.43.0=runtimeClasspath,testRuntimeClasspath
@@ -118,7 +118,7 @@ org.junit.platform:junit-platform-launcher:1.11.2=testRuntimeClasspath
118118
org.junit:junit-bom:5.10.0=testCompileClasspath
119119
org.junit:junit-bom:5.11.2=testRuntimeClasspath
120120
org.latencyutils:LatencyUtils:2.0.3=runtimeClasspath,testRuntimeClasspath
121-
org.mockito:mockito-core:5.15.2=testCompileClasspath,testRuntimeClasspath
121+
org.mockito:mockito-core:5.8.0=testCompileClasspath,testRuntimeClasspath
122122
org.objenesis:objenesis:3.3=testRuntimeClasspath
123123
org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
124124
org.projectlombok:lombok:1.18.30=annotationProcessor,compileClasspath,testCompileClasspath

kafka-streams-partitioners/avro-partitioners/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ dependencies {
2626

2727
testImplementation(commonLibs.junit.jupiter)
2828
testImplementation(localLibs.junit.pioneer)
29-
testImplementation(localLibs.mockito.core)
30-
testRuntimeOnly(localLibs.log4j.slf4j.impl)
29+
testImplementation(commonLibs.mockito.core)
30+
testRuntimeOnly(commonLibs.log4j.slf4j2.impl)
3131
}
3232

3333
// Disabling compatibility check for the test avro definitions.

kafka-streams-partitioners/avro-partitioners/gradle.lockfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ commons-codec:commons-codec:1.17.0=compileClasspath,runtimeClasspath,testCompile
1919
commons-io:commons-io:2.16.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2020
io.grpc:grpc-bom:1.75.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2121
io.netty:netty-bom:4.1.133.Final=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
22-
net.bytebuddy:byte-buddy-agent:1.15.11=testCompileClasspath,testRuntimeClasspath
23-
net.bytebuddy:byte-buddy:1.15.11=testCompileClasspath,testRuntimeClasspath
22+
net.bytebuddy:byte-buddy-agent:1.14.10=testCompileClasspath,testRuntimeClasspath
23+
net.bytebuddy:byte-buddy:1.14.10=testCompileClasspath,testRuntimeClasspath
2424
org.apache.avro:avro:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2525
org.apache.commons:commons-compress:1.26.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2626
org.apache.commons:commons-lang3:3.18.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2727
org.apache.kafka:kafka-clients:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2828
org.apache.kafka:kafka-streams:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
29-
org.apache.logging.log4j:log4j-api:2.20.0=testRuntimeClasspath
30-
org.apache.logging.log4j:log4j-core:2.20.0=testRuntimeClasspath
31-
org.apache.logging.log4j:log4j-slf4j-impl:2.20.0=testRuntimeClasspath
29+
org.apache.logging.log4j:log4j-api:2.25.4=testRuntimeClasspath
30+
org.apache.logging.log4j:log4j-core:2.25.4=testRuntimeClasspath
31+
org.apache.logging.log4j:log4j-slf4j2-impl:2.25.4=testRuntimeClasspath
3232
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
3333
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3434
org.eclipse.jetty.ee10:jetty-ee10-bom:12.1.9=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -48,11 +48,12 @@ org.junit.platform:junit-platform-engine:1.11.2=testRuntimeClasspath
4848
org.junit.platform:junit-platform-launcher:1.11.2=testRuntimeClasspath
4949
org.junit:junit-bom:5.10.0=testCompileClasspath
5050
org.junit:junit-bom:5.11.2=testRuntimeClasspath
51-
org.mockito:mockito-core:5.15.2=testCompileClasspath,testRuntimeClasspath
51+
org.mockito:mockito-core:5.8.0=testCompileClasspath,testRuntimeClasspath
5252
org.objenesis:objenesis:3.3=testRuntimeClasspath
5353
org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
5454
org.projectlombok:lombok:1.18.30=annotationProcessor,compileClasspath
5555
org.rocksdb:rocksdbjni:7.9.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
56-
org.slf4j:slf4j-api:2.0.13=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
56+
org.slf4j:slf4j-api:2.0.13=compileClasspath,runtimeClasspath,testCompileClasspath
57+
org.slf4j:slf4j-api:2.0.17=testRuntimeClasspath
5758
org.xerial.snappy:snappy-java:1.1.10.5=runtimeClasspath,testRuntimeClasspath
5859
empty=

kafka-streams-partitioners/weighted-group-partitioner/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ dependencies {
1919
api(commonLibs.hypertrace.grpcutils.client)
2020
api(commonLibs.typesafe.config)
2121
implementation(commonLibs.guava)
22-
implementation(localLibs.hypertrace.grpcutils.context)
22+
implementation(commonLibs.hypertrace.grpcutils.context)
2323
implementation(localLibs.hypertrace.config.partitioner.api)
2424
implementation(commonLibs.slf4j2.api)
2525

2626
testImplementation(commonLibs.junit.jupiter)
2727
testImplementation(localLibs.junit.pioneer)
28-
testImplementation(localLibs.mockito.core)
29-
testRuntimeOnly(localLibs.log4j.slf4j.impl)
30-
testRuntimeOnly(localLibs.grpc.netty)
28+
testImplementation(commonLibs.mockito.core)
29+
testRuntimeOnly(commonLibs.log4j.slf4j2.impl)
30+
testRuntimeOnly(commonLibs.grpc.netty)
3131
}

kafka-streams-partitioners/weighted-group-partitioner/gradle.lockfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ io.netty:netty-transport-native-unix-common:4.1.133.Final=testRuntimeClasspath
4646
io.netty:netty-transport:4.1.133.Final=testRuntimeClasspath
4747
io.perfmark:perfmark-api:0.27.0=runtimeClasspath,testRuntimeClasspath
4848
javax.annotation:javax.annotation-api:1.3.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
49-
net.bytebuddy:byte-buddy-agent:1.15.11=testCompileClasspath,testRuntimeClasspath
50-
net.bytebuddy:byte-buddy:1.15.11=testCompileClasspath,testRuntimeClasspath
49+
net.bytebuddy:byte-buddy-agent:1.14.10=testCompileClasspath,testRuntimeClasspath
50+
net.bytebuddy:byte-buddy:1.14.10=testCompileClasspath,testRuntimeClasspath
5151
org.apache.kafka:kafka-clients:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
5252
org.apache.kafka:kafka-streams:7.7.0-ccs=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
53-
org.apache.logging.log4j:log4j-api:2.20.0=testRuntimeClasspath
54-
org.apache.logging.log4j:log4j-core:2.20.0=testRuntimeClasspath
55-
org.apache.logging.log4j:log4j-slf4j-impl:2.20.0=testRuntimeClasspath
53+
org.apache.logging.log4j:log4j-api:2.25.4=testRuntimeClasspath
54+
org.apache.logging.log4j:log4j-core:2.25.4=testRuntimeClasspath
55+
org.apache.logging.log4j:log4j-slf4j2-impl:2.25.4=testRuntimeClasspath
5656
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
5757
org.checkerframework:checker-qual:3.43.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
5858
org.codehaus.mojo:animal-sniffer-annotations:1.24=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -76,11 +76,12 @@ org.junit.platform:junit-platform-engine:1.11.2=testRuntimeClasspath
7676
org.junit.platform:junit-platform-launcher:1.11.2=testRuntimeClasspath
7777
org.junit:junit-bom:5.10.0=testCompileClasspath
7878
org.junit:junit-bom:5.11.2=testRuntimeClasspath
79-
org.mockito:mockito-core:5.15.2=testCompileClasspath,testRuntimeClasspath
79+
org.mockito:mockito-core:5.8.0=testCompileClasspath,testRuntimeClasspath
8080
org.objenesis:objenesis:3.3=testRuntimeClasspath
8181
org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
8282
org.projectlombok:lombok:1.18.30=annotationProcessor,compileClasspath
8383
org.rocksdb:rocksdbjni:7.9.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
84-
org.slf4j:slf4j-api:2.0.7=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
84+
org.slf4j:slf4j-api:2.0.17=testRuntimeClasspath
85+
org.slf4j:slf4j-api:2.0.7=compileClasspath,runtimeClasspath,testCompileClasspath
8586
org.xerial.snappy:snappy-java:1.1.10.5=runtimeClasspath,testRuntimeClasspath
8687
empty=

0 commit comments

Comments
 (0)