Skip to content

Commit 967f216

Browse files
feat: upgrade jackson, grpc, constrain vulns and use bom (#24)
1 parent 80fc7a9 commit 967f216

File tree

5 files changed

+52
-63
lines changed

5 files changed

+52
-63
lines changed

grpc-client-rx-utils/build.gradle.kts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,15 @@ plugins {
66
}
77

88
dependencies {
9-
api("io.reactivex.rxjava3:rxjava:3.0.6")
10-
api("io.grpc:grpc-stub:1.42.0")
9+
api(platform("io.grpc:grpc-bom:1.43.1"))
10+
api("io.reactivex.rxjava3:rxjava:3.1.3")
11+
api("io.grpc:grpc-stub")
1112
api(project(":grpc-context-utils"))
12-
implementation("io.grpc:grpc-context:1.42.0")
13+
implementation("io.grpc:grpc-context")
1314

14-
constraints {
15-
implementation("com.google.code.gson:gson:2.8.9") {
16-
because("https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327")
17-
}
18-
}
19-
20-
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
21-
testImplementation("org.mockito:mockito-core:3.12.1")
22-
testImplementation("org.mockito:mockito-junit-jupiter:3.12.1")
15+
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
16+
testImplementation("org.mockito:mockito-core:4.2.0")
17+
testImplementation("org.mockito:mockito-junit-jupiter:4.2.0")
2318
}
2419

2520
tasks.test {

grpc-client-utils/build.gradle.kts

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,20 @@ plugins {
66
}
77

88
dependencies {
9-
api("io.grpc:grpc-context:1.42.0")
10-
api("io.grpc:grpc-api:1.42.0")
9+
api(platform("io.grpc:grpc-bom:1.43.1"))
10+
api("io.grpc:grpc-context")
11+
api("io.grpc:grpc-api")
1112

1213
implementation(project(":grpc-context-utils"))
13-
implementation("org.slf4j:slf4j-api:1.7.30")
14+
implementation("org.slf4j:slf4j-api:1.7.32")
1415

15-
annotationProcessor("org.projectlombok:lombok:1.18.18")
16-
compileOnly("org.projectlombok:lombok:1.18.18")
16+
annotationProcessor("org.projectlombok:lombok:1.18.22")
17+
compileOnly("org.projectlombok:lombok:1.18.22")
1718

18-
constraints {
19-
implementation("com.google.code.gson:gson:2.8.9") {
20-
because("https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327")
21-
}
22-
}
23-
24-
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
25-
testImplementation("org.mockito:mockito-core:3.12.1")
26-
testImplementation("org.mockito:mockito-inline:3.12.1")
27-
testRuntimeOnly("io.grpc:grpc-netty:1.42.0")
19+
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
20+
testImplementation("org.mockito:mockito-core:4.2.0")
21+
testImplementation("org.mockito:mockito-inline:4.2.0")
22+
testRuntimeOnly("io.grpc:grpc-netty")
2823
}
2924

3025
tasks.test {

grpc-context-utils/build.gradle.kts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,29 @@ tasks.test {
1010
}
1111

1212
dependencies {
13-
// grpc
14-
implementation("io.grpc:grpc-core:1.42.0")
13+
api(platform("io.grpc:grpc-bom:1.43.1"))
14+
implementation("io.grpc:grpc-core")
1515

16-
implementation("com.auth0:java-jwt:3.14.0")
17-
implementation("com.auth0:jwks-rsa:0.17.0")
18-
implementation("com.google.guava:guava:30.1-jre")
19-
20-
// Logging
21-
implementation("org.slf4j:slf4j-api:1.7.30")
22-
// End Logging
16+
implementation("com.auth0:java-jwt:3.18.2")
17+
implementation("com.auth0:jwks-rsa:0.20.0")
18+
implementation("com.google.guava:guava:31.0.1-jre")
19+
implementation("org.slf4j:slf4j-api:1.7.32")
2320

2421
constraints {
25-
implementation("com.google.code.gson:gson:2.8.9") {
22+
api("com.fasterxml.jackson.core:jackson-databind:2.13.1") {
23+
because("https://snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-232")
24+
}
25+
api("io.netty:netty-codec-http2:4.1.68.Final") {
26+
because("Multiple vulnerabilities")
27+
}
28+
api("io.netty:netty-handler-proxy:4.1.71.Final"){
29+
because("Multiple vulnerabilities")
30+
}
31+
api("com.google.code.gson:gson:2.8.9"){
2632
because("https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327")
2733
}
2834
}
2935

30-
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
31-
testImplementation("org.mockito:mockito-core:3.12.1")
36+
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
37+
testImplementation("org.mockito:mockito-core:4.2.0")
3238
}

grpc-server-rx-utils/build.gradle.kts

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,18 @@ plugins {
66
}
77

88
dependencies {
9-
api("io.reactivex.rxjava3:rxjava:3.0.6")
10-
api("io.grpc:grpc-stub:1.42.0")
9+
api(platform("io.grpc:grpc-bom:1.43.1"))
10+
api("io.reactivex.rxjava3:rxjava:3.1.3")
11+
api("io.grpc:grpc-stub")
1112

12-
annotationProcessor("org.projectlombok:lombok:1.18.18")
13-
compileOnly("org.projectlombok:lombok:1.18.18")
13+
annotationProcessor("org.projectlombok:lombok:1.18.22")
14+
compileOnly("org.projectlombok:lombok:1.18.22")
1415

15-
implementation("org.slf4j:slf4j-api:1.7.30")
16-
17-
constraints {
18-
implementation("com.google.guava:guava:30.1-jre") {
19-
because("https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-1015415")
20-
}
21-
implementation("com.google.code.gson:gson:2.8.9") {
22-
because("https://snyk.io/vuln/SNYK-JAVA-COMGOOGLECODEGSON-1730327")
23-
}
16+
implementation("org.slf4j:slf4j-api:1.7.32")
2417

25-
}
26-
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
27-
testImplementation("org.mockito:mockito-core:3.12.1")
28-
testImplementation("org.mockito:mockito-junit-jupiter:3.12.1")
18+
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
19+
testImplementation("org.mockito:mockito-core:4.2.0")
20+
testImplementation("org.mockito:mockito-junit-jupiter:4.2.0")
2921
}
3022

3123
tasks.test {

grpc-server-utils/build.gradle.kts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ tasks.test {
1010
}
1111

1212
dependencies {
13-
api("io.grpc:grpc-context:1.42.0")
14-
api("io.grpc:grpc-api:1.42.0")
13+
api(platform("io.grpc:grpc-bom:1.43.1"))
14+
api("io.grpc:grpc-context")
15+
api("io.grpc:grpc-api")
1516

1617
implementation(project(":grpc-context-utils"))
17-
implementation("org.slf4j:slf4j-api:1.7.30")
18+
implementation("org.slf4j:slf4j-api:1.7.32")
1819

19-
annotationProcessor("org.projectlombok:lombok:1.18.20")
20-
compileOnly("org.projectlombok:lombok:1.18.20")
20+
annotationProcessor("org.projectlombok:lombok:1.18.22")
21+
compileOnly("org.projectlombok:lombok:1.18.22")
2122

22-
testImplementation("org.junit.jupiter:junit-jupiter:5.7.0")
23-
testImplementation("org.mockito:mockito-core:3.12.1")
23+
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
24+
testImplementation("org.mockito:mockito-core:4.2.0")
2425
}

0 commit comments

Comments
 (0)