Skip to content

Commit 50aeffc

Browse files
committed
Restrict errorprone to max 2.31.0
Signed-off-by: Jan Høydahl <[email protected]>
1 parent 91fc10d commit 50aeffc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gradle/validation/error-prone.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ if (skipReason) {
3535
}
3636
}
3737

38+
configurations.all {
39+
resolutionStrategy {
40+
eachDependency { details ->
41+
if (details.requested.group == "com.google.errorprone" &&
42+
(details.requested.name == "error_prone_core" || details.requested.name == "error_prone_annotations")) {
43+
details.useVersion("2.31.0")
44+
details.because("Lock Error Prone dependencies to 2.31.0 to prevent accidental upgrades")
45+
}
46+
}
47+
}
48+
}
49+
3850
allprojects { prj ->
3951
plugins.withType(JavaPlugin) {
4052
// LUCENE-9650: Errorprone on master/gradle does not work when running as plugin

0 commit comments

Comments
 (0)