diff --git a/buildSrc/src/main/java/org/springframework/boot/build/test/autoconfigure/TestSliceMetadata.java b/buildSrc/src/main/java/org/springframework/boot/build/test/autoconfigure/TestSliceMetadata.java index c32073f492..3c4c8a478d 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/test/autoconfigure/TestSliceMetadata.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/test/autoconfigure/TestSliceMetadata.java @@ -69,6 +69,7 @@ public class TestSliceMetadata extends DefaultTask { getInputs().dir((Callable) () -> this.sourceSet.getOutput().getResourcesDir()) .withPathSensitivity(PathSensitivity.RELATIVE) .withPropertyName("resources"); + dependsOn((Callable) () -> this.sourceSet.getProcessResourcesTaskName()); getInputs().files((Callable) () -> this.sourceSet.getOutput().getClassesDirs()) .withPathSensitivity(PathSensitivity.RELATIVE) .withPropertyName("classes");