diff --git a/smoke-test/spring-boot-smoke-test-structured-logging-log4j2/build.gradle b/smoke-test/spring-boot-smoke-test-structured-logging-log4j2/build.gradle index 6bb5fa1c22c..6ee43578681 100644 --- a/smoke-test/spring-boot-smoke-test-structured-logging-log4j2/build.gradle +++ b/smoke-test/spring-boot-smoke-test-structured-logging-log4j2/build.gradle @@ -30,3 +30,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-test")) } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +}