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 Objecttrait Matchableclass Any
- Self type
-
BuildCtx.type
Members list
Value members
Concrete methods
Attributes
- Source
- BuildCtx.scala
Attributes
- Source
- BuildCtx.scala
Global repositories configured via mill-repositories in the build file header or .mill-repositories config file. These are used for resolving Mill's own dependencies (daemon jars, JVM index) and as default repositories for CoursierModule.
Global repositories configured via mill-repositories in the build file header or .mill-repositories config file. These are used for resolving Mill's own dependencies (daemon jars, JVM index) and as default repositories for CoursierModule.
Attributes
- Source
- BuildCtx.scala
The root mill.api.RootModule of the current Mill build. Accessing this from user-facing code such as Task.Commands gives plugins a convenient way to walk the module tree without having to thread an Evaluator through their APIs.
The root mill.api.RootModule of the current Mill build. Accessing this from user-facing code such as Task.Commands gives plugins a convenient way to walk the module tree without having to thread an Evaluator through their APIs.
This is set once when the build is initialized and may be null before then. Cast to mill.api.Module (or mill.api.internal.RootModule0) to traverse the module tree, e.g. via millInternal.modules.
Attributes
- Source
- BuildCtx.scala
Attributes
- Source
- BuildCtx.scala
Attributes
- Source
- BuildCtx.scala
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
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
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 preferred 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