|
|
|
@ -115,16 +115,16 @@ 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:CustomContractAnnotations", "org.springframework.lang.Contract") |
|
|
|
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract") |
|
|
|
option("NullAway:AnnotatedPackages", "org.springframework") |
|
|
|
option("NullAway:AnnotatedPackages", "org.springframework") |
|
|
|
option("NullAway:UnannotatedSubPackages", "org.springframework.instrument,org.springframework.context.index," + |
|
|
|
option("NullAway:UnannotatedSubPackages", "org.springframework.instrument,org.springframework.context.index," + |
|
|
|
"org.springframework.asm,org.springframework.cglib,org.springframework.objenesis," + |
|
|
|
"org.springframework.asm,org.springframework.cglib,org.springframework.objenesis," + |
|
|
|
"org.springframework.javapoet,org.springframework.aot.nativex.substitution,org.springframework.aot.nativex.feature") |
|
|
|
"org.springframework.javapoet,org.springframework.aot.nativex.substitution,org.springframework.aot.nativex.feature") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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") |
|
|
|
} |
|
|
|
} |
|
|
|
|