Skip to content

Commit 941e1e8

Browse files
committed
Upgrade errorprone to latest version.
1 parent 8fe4ee6 commit 941e1e8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

root-project.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ buildscript {
2929
dependencies {
3030
classpath 'com.android.tools.build:gradle:3.0.1'
3131
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
32-
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
32+
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.6'
3333
classpath 'org.jsoup:jsoup:1.11.2'
3434
classpath 'gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6'
3535
classpath 'com.google.gms:google-services:4.1.0'
@@ -41,6 +41,8 @@ buildscript {
4141
ext {
4242
playServicesVersion = '16.0.1'
4343
supportAnnotationsVersion = '26.1.0'
44+
errorproneVersion = '2.3.1'
45+
errorproneJavacVersion = '9+181-r4173-1'
4446
}
4547

4648
apply plugin: com.google.firebase.gradle.plugins.publish.PublishingPlugin
@@ -55,6 +57,11 @@ configure(subprojects) {
5557
}
5658
}
5759
apply plugin: 'net.ltgt.errorprone'
60+
dependencies {
61+
errorprone "com.google.errorprone:error_prone_core:$errorproneVersion"
62+
errorproneJavac "com.google.errorprone:javac:$errorproneJavacVersion"
63+
64+
}
5865
apply plugin: 'com.github.sherter.google-java-format'
5966
googleJavaFormat {
6067
toolVersion = '1.6'
@@ -77,7 +84,7 @@ configure(subprojects) {
7784
}
7885

7986
tasks.withType(JavaCompile) {
80-
options.compilerArgs += ['-XepExcludedPaths:.*/build/generated/.*']
87+
options.errorprone.excludedPaths = '.*/build/generated/.*'
8188
}
8289

8390
// Adds firebase custom errorprone checks to the annotation processor classpath.

0 commit comments

Comments
 (0)