Task

mill.define.Task
See theTask companion object
@Scaladoc(value = "/**\n * Models a single node in the Mill build graph, with a list of inputs and a\n * single output of type [[T]].\n *\n * Generally not instantiated manually, but instead constructed via the\n * [[Target.apply]] & similar macros.\n */")
abstract class Task[+T] extends Ops[T], Applyable[Task, T]

Models a single node in the Mill build graph, with a list of inputs and a single output of type T.

Generally not instantiated manually, but instead constructed via the Target.apply & similar macros.

Attributes

Companion
object
Source
Task.scala
Graph
Supertypes
trait Applyable[Task, T]
class Ops[T]
class Object
trait Matchable
class Any
Known subtypes
class AnonImpl[T]
trait NamedTask[T]
class Command[T]
trait Target[T]
class InputImpl[T]
class SourceImpl
class SourcesImpl
class TargetImpl[T]
class Worker[T]
Show all

Members list

Value members

Abstract methods

@Scaladoc(value = "/**\n * Evaluate this task\n */")
def evaluate(args: Ctx): Result[T]

Evaluate this task

Evaluate this task

Attributes

Source
Task.scala

Concrete methods

def asCommand: Option[Command[T]]

Attributes

Source
Task.scala
def asTarget: Option[Target[T]]

Attributes

Source
Task.scala
def asWorker: Option[Worker[T]]

Attributes

Source
Task.scala
def isExclusiveCommand: Boolean

Attributes

Source
Task.scala
@Scaladoc(value = "/**\n * Whether or not this [[Task]] deletes the `Task.dest` folder between runs\n */")
def persistent: Boolean

Whether or not this Task deletes the Task.dest folder between runs

Whether or not this Task deletes the Task.dest folder between runs

Attributes

Source
Task.scala
@Scaladoc(value = "/**\n * Even if this tasks\'s inputs did not change, does it need to re-evaluate\n * anyway?\n */")
def sideHash: Int

Even if this tasks's inputs did not change, does it need to re-evaluate anyway?

Even if this tasks's inputs did not change, does it need to re-evaluate anyway?

Attributes

Source
Task.scala

Inherited methods

def apply(): T

Attributes

Inherited from:
Applyable
Source
Applicative.scala
def filter(f: T => Boolean): Task[T]

Attributes

Inherited from:
Ops
Source
Task.scala
def map[V](f: T => V): Task[V]

Attributes

Inherited from:
Ops
Source
Task.scala
def withFilter(f: T => Boolean): Task[T]

Attributes

Inherited from:
Ops
Source
Task.scala
def zip[V](other: Task[V]): Task[(T, V)]

Attributes

Inherited from:
Ops
Source
Task.scala

Abstract fields

@Scaladoc(value = "/**\n * What other tasks does this task depend on?\n */")
val inputs: Seq[Task[_]]

What other tasks does this task depend on?

What other tasks does this task depend on?

Attributes

Source
Task.scala