PrecompiledModule

mill.api.PrecompiledModule
See thePrecompiledModule companion trait

Attributes

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

Members list

Value members

Concrete methods

Every PrecompiledModule reachable from the current build's root module. Safe to call after module construction completes — e.g. inside a Task body or a moduleDeps override. Reading this from a non-lazy field initializer on a PrecompiledModule subclass will deadlock, because the discovery walk is itself in progress while the subclass is being constructed.

Every PrecompiledModule reachable from the current build's root module. Safe to call after module construction completes — e.g. inside a Task body or a moduleDeps override. Reading this from a non-lazy field initializer on a PrecompiledModule subclass will deadlock, because the discovery walk is itself in progress while the subclass is being constructed.

Returns an empty sequence if no build is active (e.g. BuildCtx.rootModule has not yet been published).

Attributes

Source
ScriptModule.scala
def all[T <: PrecompiledModule](using ct: ClassTag[T]): Seq[T]

Type-narrowed variant of all: returns only precompiled modules whose class matches T. Lets callers skip a .collect at the call site.

Type-narrowed variant of all: returns only precompiled modules whose class matches T. Lets callers skip a .collect at the call site.

Attributes

Source
ScriptModule.scala

Exports

Defined exports

final type Config = Config
Exported from ScriptModule$

Attributes

Source
ScriptModule.scala