From b2ef9da15421a67f8fda75a56df2fcbbf7c530bb Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 13 Jun 2023 20:29:30 +0100 Subject: [PATCH] Always run Actuator documentation tests The tests must run so that the snippets included in the docs are generated. Closes gh-35875 --- .../java/org/springframework/boot/build/JavaConventions.java | 2 ++ 1 file changed, 2 insertions(+) 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.*")); } }