mirror of
https://github.com/google/nomulus
synced 2026-01-03 03:35: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: {
|
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user