diff --git a/module/spring-boot-batch-data-mongodb/build.gradle b/module/spring-boot-batch-data-mongodb/build.gradle index e506998f726..5ef6bffb894 100644 --- a/module/spring-boot-batch-data-mongodb/build.gradle +++ b/module/spring-boot-batch-data-mongodb/build.gradle @@ -43,3 +43,11 @@ dependencies { testRuntimeOnly("ch.qos.logback:logback-classic") } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} + +tasks.named("compileDockerTestJava") { + options.nullability.checking = "tests" +}