Cross

mill.define.Cross
See theCross companion object
@Scaladoc(value = "/**\n * Models \"cross-builds\": sets of duplicate builds which differ only in the\n * value of one or more \"case\" variables whose values are determined at runtime.\n * Used via:\n *\n * {{{\n * object foo extends Cross[FooModule](\"bar\", \"baz\", \"qux\")\n * trait FooModule extends Cross.Module[String]{\n * ... crossValue ...\n * }\n * }}}\n */")
trait Cross[M <: Module[_]](factories: Factory[M]*) extends Module

Models "cross-builds": sets of duplicate builds which differ only in the value of one or more "case" variables whose values are determined at runtime. Used via:

object foo extends Cross[FooModule]("bar", "baz", "qux")
trait FooModule extends Cross.Module[String]{
 ... crossValue ...
}

Attributes

Companion
object
Source
Cross.scala
Graph
Supertypes
trait Module
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

trait Item

Attributes

Source
Cross.scala
Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

@Scaladoc(value = "/**\n * Miscellaneous machinery around traversing & querying the build hierarchy,\n * that should not be needed by normal users of Mill\n */")
object moduleInternal extends Internal

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Attributes

Inherited from:
Module
Source
Module.scala
Supertypes
class Internal
class Object
trait Matchable
class Any

Value members

Concrete methods

@Scaladoc(value = "/**\n * Fetch the cross module corresponding to the given cross values\n */")
def apply(arg0: Any, args: Any*): M

Fetch the cross module corresponding to the given cross values

Fetch the cross module corresponding to the given cross values

Attributes

Source
Cross.scala
@Scaladoc(value = "/**\n * Fetch the relevant cross module given the implicit resolver you have in\n * scope. This is often the first cross module whose cross-version is\n * compatible with the current module.\n */")
def apply[V >: M <: Module[_]]()(implicit resolver: Resolver[V]): M

Fetch the relevant cross module given the implicit resolver you have in scope. This is often the first cross module whose cross-version is compatible with the current module.

Fetch the relevant cross module given the implicit resolver you have in scope. This is often the first cross module whose cross-version is compatible with the current module.

Attributes

Source
Cross.scala
@Scaladoc(value = "/**\n * The default cross segments to use, when no cross value is specified.\n * Defaults to the first cross value per cross level.\n */")
def defaultCrossSegments: Seq[String]

The default cross segments to use, when no cross value is specified. Defaults to the first cross value per cross level.

The default cross segments to use, when no cross value is specified. Defaults to the first cross value per cross level.

Attributes

Source
Cross.scala
@Scaladoc(value = "/**\n * Fetch the cross module corresponding to the given cross values\n */")
def get(args: Seq[Any]): M

Fetch the cross module corresponding to the given cross values

Fetch the cross module corresponding to the given cross values

Attributes

Source
Cross.scala

Inherited methods

def moduleCtx: Ctx

Attributes

Inherited from:
BaseClass
Source
Module.scala
def moduleDir: Path

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Module -> Any
Inherited from:
Module
Source
Module.scala

Concrete fields

@Scaladoc(value = "/**\n * A list of the cross modules, in\n * the order the original cross values were given in\n */")
lazy val crossModules: Seq[M]

A list of the cross modules, in the order the original cross values were given in

A list of the cross modules, in the order the original cross values were given in

Attributes

Source
Cross.scala
val ctx: Ctx

Attributes

Source
Cross.scala
val items: List[Item]

Attributes

Source
Cross.scala
lazy override val moduleDirectChildren: Seq[Module]

Attributes

Source
Cross.scala
@Scaladoc(value = "/**\n * A mapping of the string-ified string segments to the cross modules, in\n * the order the original cross values were given in\n */")
val segmentsToModules: MapView[List[String], M]

A mapping of the string-ified string segments to the cross modules, in the order the original cross values were given in

A mapping of the string-ified string segments to the cross modules, in the order the original cross values were given in

Attributes

Source
Cross.scala
@Scaladoc(value = "/**\n * A mapping of the raw cross values to the cross modules, in\n * the order the original cross values were given in\n */")
val valuesToModules: MapView[List[Any], M]

A mapping of the raw cross values to the cross modules, in the order the original cross values were given in

A mapping of the raw cross values to the cross modules, in the order the original cross values were given in

Attributes

Source
Cross.scala

Implicits

Inherited implicits

implicit def moduleNestedCtx: Nested

Attributes

Inherited from:
Module
Source
Module.scala