Skip to content

Commit 2881279

Browse files
refactor: use bom to constrain netty (#32)
1 parent 902d56d commit 2881279

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

grpc-client-utils/build.gradle.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ plugins {
66
}
77

88
dependencies {
9-
constraints {
10-
api("io.netty:netty-codec-http2:4.1.77.Final") {
11-
because("https://snyk.io/vuln/SNYK-JAVA-IONETTY-2812456")
12-
}
13-
}
9+
1410
api(platform("io.grpc:grpc-bom:1.47.0"))
1511
api("io.grpc:grpc-context")
1612
api("io.grpc:grpc-api")
13+
api(platform("io.netty:netty-bom:4.1.79.Final")) {
14+
because("https://snyk.io/vuln/SNYK-JAVA-IONETTY-2812456")
15+
}
1716

1817
implementation(project(":grpc-context-utils"))
1918
implementation("org.slf4j:slf4j-api:1.7.36")

grpc-server-utils/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ dependencies {
1414
api("io.grpc:grpc-context")
1515
api("io.grpc:grpc-api")
1616

17-
constraints {
18-
api("io.netty:netty-codec-http2:4.1.77.Final") {
19-
because("https://snyk.io/vuln/SNYK-JAVA-IONETTY-2812456")
20-
}
17+
api(platform("io.netty:netty-bom:4.1.79.Final")) {
18+
because("https://snyk.io/vuln/SNYK-JAVA-IONETTY-2812456")
2119
}
2220

2321
implementation(project(":grpc-context-utils"))

0 commit comments

Comments
 (0)