Fix bats distro test to build distributions (#45529)

The dependency on copying distributions was accidentally masked by an
earlier refactoring. This commit fixes the copyDistributions task to be
run before bats tests run.
This commit is contained in:
Ryan Ernst 2019-08-13 22:50:35 -07:00 committed by Ryan Ernst
parent 1403a389f8
commit 84bf98e9cd
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ public class DistroTestPlugin implements Plugin<Project> {
}
private static TaskProvider<BatsTestTask> configureBatsTest(Project project, String type, Provider<Directory> distributionsDir,
TaskProvider<Copy> copyPackagingArchives, Object... deps) {
Object... deps) {
return project.getTasks().register("destructiveBatsTest." + type, BatsTestTask.class,
t -> {
Directory batsDir = project.getLayout().getProjectDirectory().dir("bats");