|
|
|
|
@ -6,15 +6,13 @@ apply plugin: 'org.springframework.build.optional-dependencies'
@@ -6,15 +6,13 @@ apply plugin: 'org.springframework.build.optional-dependencies'
|
|
|
|
|
// apply plugin: 'io.github.goooler.shadow' |
|
|
|
|
apply plugin: 'me.champeau.jmh' |
|
|
|
|
apply from: "$rootDir/gradle/publications.gradle" |
|
|
|
|
apply plugin: 'net.ltgt.errorprone' |
|
|
|
|
apply plugin: "io.spring.nullability" |
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
|
jmh 'org.openjdk.jmh:jmh-core:1.37' |
|
|
|
|
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37' |
|
|
|
|
jmh 'org.openjdk.jmh:jmh-generator-bytecode:1.37' |
|
|
|
|
jmh 'net.sf.jopt-simple:jopt-simple' |
|
|
|
|
errorprone 'com.uber.nullaway:nullaway:0.12.4' |
|
|
|
|
errorprone 'com.google.errorprone:error_prone_core:2.36.0' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pluginManager.withPlugin("kotlin") { |
|
|
|
|
@ -126,15 +124,3 @@ publishing {
@@ -126,15 +124,3 @@ publishing {
|
|
|
|
|
components.java.withVariantsFromConfiguration(configurations.testFixturesApiElements) { skip() } |
|
|
|
|
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() } |
|
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach { |
|
|
|
|
options.errorprone { |
|
|
|
|
disableAllChecks = true |
|
|
|
|
option("NullAway:OnlyNullMarked", "true") |
|
|
|
|
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract") |
|
|
|
|
option("NullAway:JSpecifyMode", "true") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
tasks.compileJava { |
|
|
|
|
// The check defaults to a warning, bump it up to an error for the main sources |
|
|
|
|
options.errorprone.error("NullAway") |
|
|
|
|
} |
|
|
|
|
|