Merge branch '6.2.x'
This commit is contained in:
commit
cfb7888044
|
@ -115,14 +115,14 @@ components.java.withVariantsFromConfiguration(configurations.testFixturesApiElem
|
||||||
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() }
|
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() }
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.errorprone {
|
options.errorprone {
|
||||||
disableAllChecks = true
|
disableAllChecks = true
|
||||||
option("NullAway:OnlyNullMarked", "true")
|
option("NullAway:OnlyNullMarked", "true")
|
||||||
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
|
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
|
||||||
option("NullAway:JSpecifyMode", "true")
|
option("NullAway:JSpecifyMode", "true")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
// The check defaults to a warning, bump it up to an error for the main sources
|
// The check defaults to a warning, bump it up to an error for the main sources
|
||||||
options.errorprone.error("NullAway")
|
options.errorprone.error("NullAway")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue