Disable SystemOut errorprone check when running locally (#3579)
This commit is contained in:
parent
136b8aa22c
commit
f02130f3e3
|
@ -8,7 +8,8 @@ dependencies {
|
||||||
errorprone("com.google.errorprone:error_prone_core")
|
errorprone("com.google.errorprone:error_prone_core")
|
||||||
}
|
}
|
||||||
|
|
||||||
val disableErrorProne = gradle.startParameter.projectProperties.get("disableErrorProne")?.toBoolean() ?: false
|
val disableErrorProne = gradle.startParameter.projectProperties.get("disableErrorProne")?.toBoolean()
|
||||||
|
?: false
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<JavaCompile>().configureEach {
|
withType<JavaCompile>().configureEach {
|
||||||
|
@ -20,6 +21,10 @@ tasks {
|
||||||
|
|
||||||
excludedPaths.set(".*/build/generated/.*")
|
excludedPaths.set(".*/build/generated/.*")
|
||||||
|
|
||||||
|
if (System.getenv("CI") == null) {
|
||||||
|
disable("SystemOut")
|
||||||
|
}
|
||||||
|
|
||||||
// Doesn't work well with Java 8
|
// Doesn't work well with Java 8
|
||||||
disable("FutureReturnValueIgnored")
|
disable("FutureReturnValueIgnored")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue