From 05b3f55049d7c145d7245bfecb3ac8bbf80b14bd Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Mon, 13 Oct 2025 11:33:42 +0200 Subject: [PATCH] Add nullability annotations to tests in module/spring-boot-opentelemetry See gh-47263 --- module/spring-boot-opentelemetry/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/spring-boot-opentelemetry/build.gradle b/module/spring-boot-opentelemetry/build.gradle index 4c9afba01a6..8ee5e2bf19c 100644 --- a/module/spring-boot-opentelemetry/build.gradle +++ b/module/spring-boot-opentelemetry/build.gradle @@ -48,3 +48,11 @@ dependencies { testRuntimeOnly("ch.qos.logback:logback-classic") testRuntimeOnly("io.grpc:grpc-api") } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} + +tasks.named("compileDockerTestJava") { + options.nullability.checking = "tests" +}