use of org.gradle.execution.plan.TaskNodeFactory in project gradle by gradle.
the class DefaultBuildController method visitDependenciesOf.
private void visitDependenciesOf(TaskInternal task, Consumer<TaskInternal> consumer) {
TaskNodeFactory taskNodeFactory = ((GradleInternal) task.getProject().getGradle()).getServices().get(TaskNodeFactory.class);
TaskNode node = taskNodeFactory.getOrCreateNode(task);
for (Node dependency : node.getAllSuccessors()) {
if (dependency instanceof TaskNode) {
consumer.accept(((TaskNode) dependency).getTask());
}
}
}
Aggregations