Skip to content

Commit 54c79a4

Browse files
committed
Force Errorprone and NullAway to use Unsafe-free version of Guava
1 parent b664788 commit 54c79a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.java-nullability-conventions.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ plugins {
1111
dependencies {
1212
errorprone(dependencyFromLibs("errorProne-core"))
1313
errorprone(dependencyFromLibs("nullaway"))
14+
constraints {
15+
errorprone("com.google.guava:guava") {
16+
version {
17+
require("33.4.8-jre")
18+
}
19+
because("Older versions use deprecated methods in sun.misc.Unsafe")
20+
}
21+
}
1422
}
1523

1624
nullaway {

0 commit comments

Comments
 (0)