object Target extends TaskBase

Source
Task.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Target
  2. TaskBase
  3. Applyer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit macro def apply[T](t: Result[T])(implicit rw: upickle.default.ReadWriter[T], ctx: Ctx): Target[T]
  5. implicit macro def apply[T](t: T)(implicit rw: upickle.default.ReadWriter[T], ctx: Ctx): Target[T]

    A target is the most common Task a user would encounter, commonly defined using the def foo = T{...} syntax.

    A target is the most common Task a user would encounter, commonly defined using the def foo = T{...} syntax. TargetImpls require that their return type is JSON serializable. In return they automatically caches their return value to disk, only re-computing if upstream Tasks change

  6. def args(implicit ctx: api.Ctx.Args): IndexedSeq[_]

    Returns the implicit mill.api.Ctx.Args.args in scope.

    Returns the implicit mill.api.Ctx.Args.args in scope.

    Definition Classes
    TaskBase
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  9. def ctx()(implicit c: api.Ctx): api.Ctx
    Definition Classes
    Applyer
  10. def dest(implicit ctx: Dest): Path

    T.dest is a unique os.Path (e.g.

    T.dest is a unique os.Path (e.g. out/classFiles.dest/ or out/run.dest/) that is assigned to every Target or Command. It is cleared before your task runs, and you can use it as a scratch space for temporary files or a place to put returned artifacts. This is guaranteed to be unique for every Target or Command, so you can be sure that you will not collide or interfere with anyone else writing to those same paths.

    Definition Classes
    TaskBase
  11. def env(implicit ctx: Env): Map[String, String]

    T.env is the environment variable map passed to the Mill command when it is run; typically used inside a Task.Input to ensure any changes in the env vars are properly detected.

    T.env is the environment variable map passed to the Mill command when it is run; typically used inside a Task.Input to ensure any changes in the env vars are properly detected.

    Note that you should not use sys.env, as Mill's long-lived server process means that sys.env variables may not be up to date.

    Definition Classes
    TaskBase
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def home(implicit ctx: Home): Path

    Returns the implicit mill.api.Ctx.Home.home in scope.

    Returns the implicit mill.api.Ctx.Home.home in scope.

    Definition Classes
    TaskBase
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def log(implicit ctx: Log): Logger

    T.log is the default logger provided for every task.

    T.log is the default logger provided for every task. While your task is running, System.out and System.in are also redirected to this logger. The logs for a task are streamed to standard out/error as you would expect, but each task's specific output is also streamed to a log file on disk, e.g. out/run.log or out/classFiles.log for you to inspect later.

    Messages logged with log.debug appear by default only in the log files. You can use the --debug option when running mill to show them on the console too.

    Definition Classes
    TaskBase
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. def reporter(implicit ctx: api.Ctx): (Int) => Option[CompileProblemReporter]

    Report build results to BSP for IDE integration

    Report build results to BSP for IDE integration

    Definition Classes
    TaskBase
  23. def sequence[T](source: Seq[Task[T]]): Task[Seq[T]]

    Converts a Seq[Task[T]] into a Task[Seq[T]]

    Converts a Seq[Task[T]] into a Task[Seq[T]]

    Definition Classes
    TaskBase
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def testReporter(implicit ctx: api.Ctx): TestReporter

    Report test results to BSP for IDE integration

    Report test results to BSP for IDE integration

    Definition Classes
    TaskBase
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def traverse[T, V](source: Seq[T])(f: (T) => Task[V]): Task[Seq[V]]

    Converts a Seq[T] into a Task[Seq[V]] using the given f: T => Task[V]

    Converts a Seq[T] into a Task[Seq[V]] using the given f: T => Task[V]

    Definition Classes
    TaskBase
  28. def traverseCtx[I, R](xs: Seq[Task[I]])(f: (IndexedSeq[I], api.Ctx) => Result[R]): Task[R]

    A variant of traverse that also provides the mill.api.Ctx to the function f

    A variant of traverse that also provides the mill.api.Ctx to the function f

    Definition Classes
    TaskBaseApplyer
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def workspace(implicit ctx: api.Ctx): Path

    This is the os.Path pointing to the project root directory.

    This is the os.Path pointing to the project root directory.

    This is the preferred access to the project directory, and should always be prefered over os.pwd* (which might also point to the project directory in classic cli scenarios, but might not in other use cases like BSP or LSP server usage).

    Definition Classes
    TaskBase
  33. object Internal

Deprecated Value Members

  1. macro def apply[T](t: Task[T])(implicit rw: upickle.default.ReadWriter[T], ctx: Ctx): Target[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Creating a target from a task is deprecated. You most likely forgot a parenthesis pair ()

  2. macro def command[T](t: Result[T])(implicit w: upickle.default.Writer[T], ctx: Ctx, cls: EnclosingClass): Command[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Command instead

  3. macro def command[T](t: Task[T])(implicit ctx: Ctx, w: upickle.default.Writer[T], cls: EnclosingClass): Command[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Creating a command from a task is deprecated. You most likely forgot a parenthesis pair ()

  4. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  5. macro def input[T](value: Result[T])(implicit w: upickle.default.Writer[T], ctx: Ctx): Target[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Input instead

  6. macro def persistent[T](t: Result[T])(implicit rw: upickle.default.ReadWriter[T], ctx: Ctx): Target[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Persistent instead

  7. macro def source(value: Result[api.PathRef])(implicit ctx: Ctx): Target[api.PathRef]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Source instead

  8. macro def source(value: Result[Path])(implicit ctx: Ctx): Target[api.PathRef]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Source instead

  9. macro def sources(values: Result[Seq[api.PathRef]])(implicit ctx: Ctx): Target[Seq[api.PathRef]]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Sources instead

  10. macro def sources(values: Result[Path]*)(implicit ctx: Ctx): Target[Seq[api.PathRef]]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Sources instead

  11. macro def task[T](t: Result[T]): Task[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC2) Use Task.Anon instead

  12. macro def worker[T](t: Result[T])(implicit ctx: Ctx): Worker[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Use Task.Worker instead

  13. macro def worker[T](t: Task[T])(implicit ctx: Ctx): Worker[T]
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC1) Creating a worker from a task is deprecated. You most likely forgot a parenthesis pair ()

Inherited from TaskBase

Inherited from Applyer[Task, Task, Result, api.Ctx]

Inherited from AnyRef

Inherited from Any

Ungrouped