mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Disable an Error Prone check incompatible with Java 12 (#100)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user