From 2f877a7415a5ee74de0f7b5e63ea2fd734114013 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Mon, 13 Oct 2025 10:29:42 +0200 Subject: [PATCH] Add nullability annotations to tests in module/spring-boot-mail See gh-47263 --- module/spring-boot-mail/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) 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" +}