diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java index eecda16e1e9..f9552c0c51d 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java @@ -285,7 +285,7 @@ public class DistroTestPlugin implements Plugin { } private static TaskProvider configureBatsTest(Project project, String type, Provider distributionsDir, - TaskProvider copyPackagingArchives, Object... deps) { + Object... deps) { return project.getTasks().register("destructiveBatsTest." + type, BatsTestTask.class, t -> { Directory batsDir = project.getLayout().getProjectDirectory().dir("bats");