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" +}