diff --git a/smoke-test/spring-boot-smoke-test-property-validation/build.gradle b/smoke-test/spring-boot-smoke-test-property-validation/build.gradle index 37ccdadcd79..a1ab0ca4001 100644 --- a/smoke-test/spring-boot-smoke-test-property-validation/build.gradle +++ b/smoke-test/spring-boot-smoke-test-property-validation/build.gradle @@ -28,3 +28,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-test")) testImplementation(project(":module:spring-boot-web-server")) } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +}