mirror of https://github.com/grpc/grpc-java.git
gradle: Downgrade mockito to 4.4.0
Starting from version 4.5.0 Mockito uses the Java stream APIs, which are not available on Android API levels < 24. This has been causing the Android integration tests for API levels 21, 22 and 23 to fail.
This commit is contained in:
parent
8c0545564f
commit
e488b67d99
|
|
@ -61,8 +61,11 @@ junit = "junit:junit:4.13.2"
|
|||
# Update notes / 2023-07-19 sergiitk:
|
||||
# Couldn't update to 5.4.0, updated to the last in 4.x line. Version 5.x breaks some tests.
|
||||
# Error log: https://github.com/grpc/grpc-java/pull/10359#issuecomment-1632834435
|
||||
mockito-android = "org.mockito:mockito-android:4.11.0"
|
||||
mockito-core = "org.mockito:mockito-core:4.11.0"
|
||||
# Update notes / 2023-10-09 temawi:
|
||||
# 4.11.0 Has been breaking the android integration tests as mockito now uses streams
|
||||
# (not available in API levels < 24). https://github.com/grpc/grpc-java/issues/10457
|
||||
mockito-android = "org.mockito:mockito-android:4.4.0"
|
||||
mockito-core = "org.mockito:mockito-core:4.4.0"
|
||||
netty-codec-http2 = { module = "io.netty:netty-codec-http2", version.ref = "netty" }
|
||||
netty-handler-proxy = { module = "io.netty:netty-handler-proxy", version.ref = "netty" }
|
||||
netty-tcnative = { module = "io.netty:netty-tcnative-boringssl-static", version.ref = "nettytcnative" }
|
||||
|
|
|
|||
Loading…
Reference in New Issue