Make TestSliceMetadata depend on source set's processResources task

Closes gh-36082
This commit is contained in:
Andy Wilkinson 2023-06-27 11:10:30 +01:00
parent 92e488345d
commit 0fdaba2487
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public class TestSliceMetadata extends DefaultTask {
getInputs().dir((Callable<File>) () -> this.sourceSet.getOutput().getResourcesDir())
.withPathSensitivity(PathSensitivity.RELATIVE)
.withPropertyName("resources");
dependsOn((Callable<String>) () -> this.sourceSet.getProcessResourcesTaskName());
getInputs().files((Callable<FileCollection>) () -> this.sourceSet.getOutput().getClassesDirs())
.withPathSensitivity(PathSensitivity.RELATIVE)
.withPropertyName("classes");