mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Disable an Error Prone check incompatible with Java 12 (#100)
This commit is contained in:
parent
a0133556e8
commit
37647d4a47
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ tasks.withType(JavaCompile).configureEach {
|
||||||
asArguments: {
|
asArguments: {
|
||||||
return ['-XepExcludedPaths:.*/build/generated/.*']
|
return ['-XepExcludedPaths:.*/build/generated/.*']
|
||||||
}] as CommandLineArgumentProvider)
|
}] 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'
|
version = '1.0'
|
||||||
|
|
Loading…
Add table
Reference in a new issue