abstract fun dependsOn(vararg paths: Any): Task
Adds the given dependencies to this task. See here for a description of the types of objects which can be used as task dependencies.
paths
- The dependencies to add to this task. The path can be defined by:
String
, CharSequence
or groovy.lang.GString
task path or name. A relative path is interpreted relative to the task's Project. This allows you to refer to tasks in other projects.Task
as parameter. It may return any of the types listed here. Its return value is recursively converted to tasks. A null
return value is treated as an empty collection.Iterable
, Collection
, Map
or array. May contain any of the types listed here. The elements of the iterable/collection/map/array are recursively converted to tasks.Callable
. The call()
method may return any of the types listed here. Its return value is recursively converted to tasks. A null
return value is treated as an empty collection.Return
the task object this method is applied to