From 69cc9f8deab02691c1dab8c56db64a9c150bcaaa Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 16 Oct 2025 09:30:54 +0200 Subject: [PATCH] Add nullability annotations to tests in smoke-test/spring-boot-smoke-test-kafka See gh-47263 --- smoke-test/spring-boot-smoke-test-kafka/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smoke-test/spring-boot-smoke-test-kafka/build.gradle b/smoke-test/spring-boot-smoke-test-kafka/build.gradle index 70b0f7cd4e5..285e960dbfd 100644 --- a/smoke-test/spring-boot-smoke-test-kafka/build.gradle +++ b/smoke-test/spring-boot-smoke-test-kafka/build.gradle @@ -46,3 +46,11 @@ dependencies { testImplementation("org.awaitility:awaitility") testImplementation("org.springframework.kafka:spring-kafka-test") } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} + +tasks.named("compileDockerTestJava") { + options.nullability.checking = "tests" +}