From 3f3b7a4523b9765dcdc3d3a73d2eb4ec71c51ada Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 16 Oct 2025 09:26:50 +0200 Subject: [PATCH] Add nullability annotations to tests in smoke-test/spring-boot-smoke-test-data-redis See gh-47263 --- smoke-test/spring-boot-smoke-test-data-redis/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smoke-test/spring-boot-smoke-test-data-redis/build.gradle b/smoke-test/spring-boot-smoke-test-data-redis/build.gradle index 04a293fc002..1ecaa5852d0 100644 --- a/smoke-test/spring-boot-smoke-test-data-redis/build.gradle +++ b/smoke-test/spring-boot-smoke-test-data-redis/build.gradle @@ -39,3 +39,11 @@ dependencies { dockerTestImplementation("org.testcontainers:testcontainers") dockerTestImplementation("redis.clients:jedis") } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} + +tasks.named("compileDockerTestJava") { + options.nullability.checking = "tests" +}