make error-prone opt-in
@@ -15,13 +15,16 @@ lombok { // optional: values below are the defaults
sha256 = ""
}
+if (project.hasProperty('enableErrorProne')) {
apply plugin: "net.ltgt.errorprone"
tasks.withType(JavaCompile) {
+ outputs.upToDateWhen { false }
options.compilerArgs += ['-Xep:FutureReturnValueIgnored:OFF']
// workaround for: https://github.com/google/error-prone/issues/780
options.compilerArgs += ['-Xep:ParameterName:OFF']
options.compilerArgs += ['-XepDisableWarningsInGeneratedCode']
}
+}
apply plugin: "eclipse"
eclipse {
@@ -262,4 +265,3 @@ plugins.withType(BasePlugin) {
otherTasks*.mustRunAfter deleteTasks
}
}
-
