From a5c8e2b7032a8bf6f05821784f31fc84eea002ef Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 16 Oct 2025 10:07:02 +0200 Subject: [PATCH] Add nullability annotations to tests in system-test/spring-boot-image-system-test See gh-47263 --- system-test/spring-boot-image-system-tests/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system-test/spring-boot-image-system-tests/build.gradle b/system-test/spring-boot-image-system-tests/build.gradle index a422136f527..55b52954170 100644 --- a/system-test/spring-boot-image-system-tests/build.gradle +++ b/system-test/spring-boot-image-system-tests/build.gradle @@ -62,3 +62,11 @@ dependencies { toolchain { maximumCompatibleJavaVersion = JavaLanguageVersion.of(23) } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} + +tasks.named("compileSystemTestJava") { + options.nullability.checking = "tests" +}