diff --git a/module/spring-boot-mail/build.gradle b/module/spring-boot-mail/build.gradle index 65967e187e5..91d14d439bf 100644 --- a/module/spring-boot-mail/build.gradle +++ b/module/spring-boot-mail/build.gradle @@ -48,3 +48,11 @@ dependencies { testRuntimeOnly("ch.qos.logback:logback-classic") } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} + +tasks.named("compileDockerTestJava") { + options.nullability.checking = "tests" +}