diff --git a/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java b/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java index 5b230ca0a3..52c396c9f9 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java @@ -186,6 +186,8 @@ class JavaConventions { PredictiveTestSelectionExtension predictiveTestSelection = test.getExtensions() .getByType(PredictiveTestSelectionExtension.class); predictiveTestSelection.getEnabled().set(true); + predictiveTestSelection.mustRun((mustRun) -> mustRun.getIncludeClasses() + .add("org.springframework.boot.actuate.autoconfigure.endpoint.web.documentation.*")); } }