Disable an Error Prone check incompatible with Java 12 (#100)

This commit is contained in:
Lai Jiang 2019-06-14 15:36:32 -04:00 committed by GitHub
parent a0133556e8
commit 37647d4a47

View file

@ -21,6 +21,12 @@ tasks.withType(JavaCompile).configureEach {
asArguments: {
return ['-XepExcludedPaths:.*/build/generated/.*']
}] as CommandLineArgumentProvider)
// Disable features currently incompatible with Java 12
if ((JavaVersion.current().majorVersion as Integer) > 11) {
// This check is broken in Java 12.
// See https://github.com/google/error-prone/issues/1257
options.errorprone.errorproneArgs=['-Xep:Finally:OFF']
}
}
version = '1.0'