@@ -6,15 +6,13 @@ apply plugin: 'org.springframework.build.optional-dependencies'
66// apply plugin: 'io.github.goooler.shadow'
77apply plugin : ' me.champeau.jmh'
88apply from : " $rootDir /gradle/publications.gradle"
9- apply plugin : ' net.ltgt.errorprone '
9+ apply plugin : " io.spring.nullability "
1010
1111dependencies {
1212 jmh ' org.openjdk.jmh:jmh-core:1.37'
1313 jmh ' org.openjdk.jmh:jmh-generator-annprocess:1.37'
1414 jmh ' org.openjdk.jmh:jmh-generator-bytecode:1.37'
1515 jmh ' net.sf.jopt-simple:jopt-simple'
16- errorprone ' com.uber.nullaway:nullaway:0.12.4'
17- errorprone ' com.google.errorprone:error_prone_core:2.36.0'
1816}
1917
2018pluginManager. withPlugin(" kotlin" ) {
@@ -126,15 +124,3 @@ publishing {
126124components. java. withVariantsFromConfiguration(configurations. testFixturesApiElements) { skip() }
127125components. java. withVariantsFromConfiguration(configurations. testFixturesRuntimeElements) { skip() }
128126
129- tasks. withType(JavaCompile ). configureEach {
130- options. errorprone {
131- disableAllChecks = true
132- option(" NullAway:OnlyNullMarked" , " true" )
133- option(" NullAway:CustomContractAnnotations" , " org.springframework.lang.Contract" )
134- option(" NullAway:JSpecifyMode" , " true" )
135- }
136- }
137- tasks. compileJava {
138- // The check defaults to a warning, bump it up to an error for the main sources
139- options. errorprone. error(" NullAway" )
140- }
0 commit comments