From 0fdaba2487aceee22e1fdfe210116eddf422b4b5 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 27 Jun 2023 11:10:30 +0100 Subject: [PATCH] Make TestSliceMetadata depend on source set's processResources task Closes gh-36082 --- .../boot/build/test/autoconfigure/TestSliceMetadata.java | 1 + 1 file changed, 1 insertion(+) 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");