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