aboutsummaryrefslogtreecommitdiff
path: root/compiler/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/build.gradle')
-rw-r--r--compiler/build.gradle11
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/build.gradle b/compiler/build.gradle
index 1fef805fa..53a735278 100644
--- a/compiler/build.gradle
+++ b/compiler/build.gradle
@@ -151,15 +151,16 @@ sourceSets {
}
compileTestJava {
- options.compilerArgs += ["-Xlint:-cast", "-Xep:MissingOverride:OFF",
- "-Xep:ReferenceEquality:OFF", "-Xep:FunctionalInterfaceClash:OFF"]
+ options.compilerArgs += [
+ "-Xlint:-cast",
+ "-XepExcludedPaths:.*/build/generated/source/proto/.*",
+ ]
}
compileTestLiteJava {
+ options.compilerArgs = compileTestJava.options.compilerArgs
// Protobuf-generated Lite produces quite a few warnings.
- options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked",
- "-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF",
- "-Xep:FallThrough:OFF"]
+ options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough"]
}
compileTestNanoJava {