Package org.gradle.api.tasks
Interface TaskDependency
-
public interface TaskDependencyA
TaskDependencyrepresents an unordered set of tasks which aTaskdepends on. Gradle ensures that all the dependencies of a task are executed before the task itself is executed.You can add a
TaskDependencyto a task by calling the task'sTask.dependsOn(Object...)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<? extends Task>getDependencies(Task task)Determines the dependencies for the givenTask.
-
-
-
Method Detail
-
getDependencies
java.util.Set<? extends Task> getDependencies(@Nullable Task task)
Determines the dependencies for the given
Task. This method is called when Gradle assembles the task execution graph for a build. This occurs after all the projects have been evaluated, and before any task execution begins.- Parameters:
task- The task to determine the dependencies for.- Returns:
- The tasks which the given task depends on. Returns an empty set if the task has no dependencies.
-
-