BuildCtx

mill.define.BuildCtx
@Scaladoc(value = "/**\n * BuildCtx contains APIs that are global throughout an entire build, without\n * being tied to any particular task or module\n */")
object BuildCtx

BuildCtx contains APIs that are global throughout an entire build, without being tied to any particular task or module

Attributes

Source
BuildCtx.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BuildCtx.type

Members list

Value members

Concrete methods

def evalWatch0(w: Watchable): Unit

Attributes

Source
BuildCtx.scala
def watch(p: Path): Path

Attributes

Source
BuildCtx.scala
def watch0(w: Watchable): Unit

Attributes

Source
BuildCtx.scala
@Scaladoc(value = "/**\n * Register a compute value as watched during module initialization, so Mill knows\n * that if the value changes during `--watch` the module needs to be re-instantiated.\n */")
def watchValue[T](v0: => T)(implicit fn: FileName, ln: Line): T

Register a compute value as watched during module initialization, so Mill knows that if the value changes during --watch the module needs to be re-instantiated.

Register a compute value as watched during module initialization, so Mill knows that if the value changes during --watch the module needs to be re-instantiated.

Attributes

Source
BuildCtx.scala
@Scaladoc(value = "/**\n * Disable Mill\'s filesystem read/write checker, which normally enforces best practices\n * about what code or tasks are able to read and write to what locations on disk.\n */")
def withFilesystemCheckerDisabled[T](block: => T): T

Disable Mill's filesystem read/write checker, which normally enforces best practices about what code or tasks are able to read and write to what locations on disk.

Disable Mill's filesystem read/write checker, which normally enforces best practices about what code or tasks are able to read and write to what locations on disk.

Attributes

Source
BuildCtx.scala
@Scaladoc(value = "/**\n * This is the `os.Path` pointing to the project root directory.\n *\n * This is the preferred access to the project directory, and should\n * always be prefered over `os.pwd`* (which might also point to the\n * project directory in classic cli scenarios, but might not in other\n * use cases like BSP or LSP server usage).\n */")
def workspaceRoot: 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).

Attributes

Source
BuildCtx.scala

Concrete fields

val workspaceRoot0: DynamicVariable[Path]

Attributes

Source
BuildCtx.scala