mill.define
Members list
Packages
Type members
Classlikes
Represents an unstructured sequence of command-line arguments that can be passed to Mill commands; similar to mainargs.Leftover
.
Represents an unstructured sequence of command-line arguments that can be passed to Mill commands; similar to mainargs.Leftover
.
Attributes
- Companion
- object
- Source
- Args.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- Args.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Args.type
Represents a module at the root of a module tree. This can either be a mill.define.RootModule
representing the build.mill
file, or a mill.define.ExternalModule
provided by a library.
Represents a module at the root of a module tree. This can either be a mill.define.RootModule
representing the build.mill
file, or a mill.define.ExternalModule
provided by a library.
Attributes
- Source
- BaseModule.scala
- Supertypes
- Known subtypes
-
class ExternalModuleobject PalantirFormatModuleobject Koverobject KtfmtModuleobject KtlintModuleobject KotlinWorkerModuleobject VcsVersionobject VisualizeModuleobject ClassgraphWorkerModuleobject Giter8Moduleobject ScalafmtModuleobject ScalafmtWorkerModuleobject Dependencyobject JvmWorkerModuleobject OfflineSupportobject PublishModuleclass RootModule0class MainRootModuletrait MainModuleShow all
Attributes
- Source
- Task.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- Cross.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Cross.type
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:
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
- Supertypes
Attributes
- Companion
- object
- Source
- CrossVersion.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- CrossVersion.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CrossVersion.type
Macro to walk the module tree and generate mainargs
entrypoints for any Task.Command
methods that it finds.
Macro to walk the module tree and generate mainargs
entrypoints for any Task.Command
methods that it finds.
Note that unlike the rest of Mill's module-handling logic which uses Java reflection, generation of entrypoints requires typeclass resolution, and so needs to be done at compile time. Thus, we walk the entire module tree, collecting all the module Class[_]
s we can find, and for each one generate the mainargs.MainData
containing metadata and resolved typeclasses for all the Task.Command
methods we find. This mapping from Class[_]
to MainData
can then be used later to look up the MainData
for any module.
Attributes
- Companion
- object
- Source
- Discover.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- Discover.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Discover.type
A module which you can override moduleDirectChildren to dynamically enable or disable child modules at runtime
A module which you can override moduleDirectChildren to dynamically enable or disable child modules at runtime
Attributes
- Source
- DynamicModule.scala
- Supertypes
An implicit that provides the lexically-enclosing class at the point at which it is resolved
An implicit that provides the lexically-enclosing class at the point at which it is resolved
Attributes
- Companion
- object
- Source
- EnclosingClass.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- EnclosingClass.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
EnclosingClass.type
Attributes
- Companion
- object
- Source
- Evaluator.scala
- Supertypes
- Known subtypes
-
class EvaluatorProxyclass EvaluatorImpl
Attributes
- Companion
- trait
- Source
- Evaluator.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Evaluator.type
Attributes
- Source
- EvaluatorProxy.scala
- Supertypes
-
trait Evaluatortrait EvaluatorApitrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Source
- ExecutionPaths.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- ExecutionPaths.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ExecutionPaths.type
Attributes
- Source
- ExecutionResults.scala
- Supertypes
A module defined outside of the build.mill
file, and is instead provided builtin by some Mill library or plugin
A module defined outside of the build.mill
file, and is instead provided builtin by some Mill library or plugin
Implementors should make sure, the final override of millDiscover happens in the final object.
override protected def millDiscover: Discover = Discover[this.type]
Attributes
- Companion
- object
- Source
- ExternalModule.scala
- Supertypes
-
class BaseModuletrait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object PalantirFormatModuleobject Koverobject KtfmtModuleobject KtlintModuleobject KotlinWorkerModuleobject VcsVersionobject VisualizeModuleobject ClassgraphWorkerModuleobject Giter8Moduleobject ScalafmtModuleobject ScalafmtWorkerModuleobject Dependencyobject JvmWorkerModuleobject OfflineSupportobject PublishModuleShow all
Attributes
- Companion
- class
- Source
- ExternalModule.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ExternalModule.type
Attributes
- Source
- Task.scala
- Supertypes
- Known subtypes
-
class SourceImplclass SourcesImpl
Attributes
- Companion
- trait
- Source
- JsonFormatters.scala
- Supertypes
- Self type
-
JsonFormatters.type
Defines various default JSON formatters used in mill.
Defines various default JSON formatters used in mill.
Attributes
- Companion
- object
- Source
- JsonFormatters.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object JsonFormatters
Attributes
- Source
- Lazy.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- ModuleCtx.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ModuleCtx
Attributes
- Source
- Mirrors.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Mirrors.type
Represents a namespace within the Mill build hierarchy, containing nested modules or tasks.
Represents a namespace within the Mill build hierarchy, containing nested modules or tasks.
Module
is a class meant to be extended by trait
s only, in order to propagate the implicit parameters forward to the final concrete instantiation site so they can capture the enclosing/line information of the concrete instance.
Attributes
- Companion
- object
- Source
- Module.scala
- Supertypes
- Known subtypes
-
class BaseModuleclass ExternalModuleobject PalantirFormatModuleobject Koverobject KtfmtModuleobject KtlintModuleobject KotlinWorkerModuleobject VcsVersionobject VisualizeModuleobject ClassgraphWorkerModuleobject Giter8Moduleobject ScalafmtModuleobject ScalafmtWorkerModuleobject Dependencyobject JvmWorkerModuleobject OfflineSupportobject PublishModuleclass RootModule0class MainRootModuletrait MainModuletrait Module[T1]trait CrossValuetrait InnerCrossModule2trait InnerCrossModule3trait InnerCrossModule4trait InnerCrossModule5trait CrossModuleBasetrait CrossSbtModuletrait CrossScalaModuletrait CrossScalaVersionRangestrait Cross[M]trait DynamicModuletrait TaskModuletrait JavaModuletrait JavaTeststrait KotlinTeststrait KotlinJsTeststrait KotestTeststrait KotlinTestPackageTeststrait KspTeststrait KotlinMavenTeststrait MavenTeststrait SbtTeststrait CrossSbtTeststrait ScalaTeststrait ScalaJSTeststrait ScalaNativeTeststrait CheckstyleModuletrait CheckstyleXsltModuletrait ErrorProneModuletrait PalantirFormatModuletrait KtfmtBaseModuletrait KtfmtModuletrait KotlinModuletrait DetektModuletrait KotlinJsModuletrait KoverModuletrait KspModuletrait KotlinMavenModuletrait PlatformKotlinModuletrait ScalafmtModuletrait BomModuletrait JlinkModuletrait JpackageModuletrait MavenModuletrait SbtModuletrait SbtNativeModuletrait PlatformModuleBasetrait PlatformScalaModuletrait PublishModuletrait ScalaModuletrait ScalaJSModuletrait TestScalaJSModuletrait UnidocModuletrait ScalaNativeModuletrait TestScalaNativeModuletrait TestModuletrait Junit4trait Junit5trait Munittrait ScalaChecktrait ScalaTesttrait Specs2trait TestNgtrait Utesttrait Weavertrait ZioTesttrait KotlinWorkerModuletrait SelectiveExecutionModuletrait BspModuletrait JavaModuleBasetrait AssemblyModuletrait CoursierModuletrait PalantirFormatBaseModuletrait KoverReportBaseModuleobject kovertrait ClassgraphWorkerModuletrait Giter8Moduletrait JvmWorkerModuletrait SemanticDbJavaModuletrait OfflineSupportModuletrait WithJvmWorkertrait NativeImageModuletrait RunModuleShow all
Attributes
- Companion
- trait
- Source
- Module.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Module.type
The contextual information provided to a mill.define.Module or mill.define.Task
The contextual information provided to a mill.define.Module or mill.define.Task
Attributes
- Companion
- object
- Source
- ModuleCtx.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- ModuleCtx.scala
- Supertypes
- Self type
-
ModuleCtx.type
Used to refer to a module from another module without including the target module as a child-module of the first.
Used to refer to a module from another module without including the target module as a child-module of the first.
Attributes
- Source
- ModuleRef.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a task that can be referenced by its path segments. Task{...}
targets, Task.Input
, Task.Worker
, etc. but not including anonymous Task.Anon
or Task.traverse
etc. instances
Represents a task that can be referenced by its path segments. Task{...}
targets, Task.Input
, Task.Worker
, etc. but not including anonymous Task.Anon
or Task.traverse
etc. instances
Attributes
- Source
- Task.scala
- Supertypes
- Known subtypes
-
class Command[T]trait Target[T]class InputImpl[T]class SourceImplclass SourcesImplclass TargetImpl[T]class Worker[T]Show all
A wrapper around os.Path
that calculates it's hashcode based on the contents of the filesystem underneath it. Used to ensure filesystem changes can bust caches which are keyed off hashcodes.
A wrapper around os.Path
that calculates it's hashcode based on the contents of the filesystem underneath it. Used to ensure filesystem changes can bust caches which are keyed off hashcodes.
Attributes
- Companion
- object
- Source
- PathRef.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- PathRef.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PathRef.type
Used to mark a module in your build.mill
as a top-level module, so it's tasks can be run directly e.g. via mill run
rather than prefixed by the module name mill foo.run
.
Used to mark a module in your build.mill
as a top-level module, so it's tasks can be run directly e.g. via mill run
rather than prefixed by the module name mill foo.run
.
Only one top-level module may be defined in your build.mill
, and it must be defined at the top level of the build.mill
and not nested in any other modules.
Attributes
- Companion
- object
- Source
- RootModule0.scala
- Supertypes
-
trait RootModuleApiclass BaseModuletrait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class MainRootModule
Attributes
- Companion
- class
- Source
- RootModule0.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RootModule0.type
Attributes
- Source
- SelectiveExecution.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SelectiveExecution.type
Attributes
- Source
- Task.scala
- Supertypes
Attributes
- Source
- SystemStreams.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SystemStreams.type
A Target is a NamedTask that is cached on disk; either a TargetImpl or an InputImpl
A Target is a NamedTask that is cached on disk; either a TargetImpl or an InputImpl
Attributes
- Companion
- object
- Source
- Task.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- Task.scala
- Supertypes
- Self type
-
Target.type
Attributes
- Source
- Task.scala
- Supertypes
Models a single node in the Mill build graph, with a list of inputs and a single output of type T.
Models a single node in the Mill build graph, with a list of inputs and a single output of type T.
Generally not instantiated manually, but instead constructed via the Target.apply & similar macros.
Attributes
- Companion
- object
- Source
- Task.scala
- Supertypes
- Known subtypes
-
class AnonImpl[T]trait NamedTask[T]class Command[T]trait Target[T]class InputImpl[T]class SourceImplclass SourcesImplclass TargetImpl[T]class Worker[T]Show all
Attributes
- Companion
- class
- Source
- Task.scala
- Supertypes
- Self type
-
Task.type
The mill.define.Target companion object, usually aliased as T, provides most of the helper methods and macros used to build task graphs. methods like Task.
apply, Task.
sources, Task.
command allow you to define the tasks, while methods like Task.
dest, Task.
log or Task.
env provide the core APIs that are provided to a task implementation
The mill.define.Target companion object, usually aliased as T, provides most of the helper methods and macros used to build task graphs. methods like Task.
apply, Task.
sources, Task.
command allow you to define the tasks, while methods like Task.
dest, Task.
log or Task.
env provide the core APIs that are provided to a task implementation
Attributes
- Source
- Task.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Represents the data and utilities that are contextually available inside the implementation of a Task
.
Represents the data and utilities that are contextually available inside the implementation of a Task
.
Attributes
- Companion
- object
- Source
- TaskCtx.scala
- Supertypes
Provides access to various resources in the context of a current execution Target.
Provides access to various resources in the context of a current execution Target.
Attributes
- Companion
- trait
- Source
- TaskCtx.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TaskCtx.type
A Module that has a defaultCommandName that will be automatically executed if the module name is provide at the Mill command line
A Module that has a defaultCommandName that will be automatically executed if the module name is provide at the Mill command line
Attributes
- Source
- TaskModule.scala
- Supertypes
- Known subtypes
-
object PalantirFormatModuleobject ScalafmtModuletrait JavaModuletrait JavaTeststrait KotlinTeststrait KotlinJsTeststrait KotestTeststrait KotlinTestPackageTeststrait KspTeststrait KotlinMavenTeststrait MavenTeststrait SbtTeststrait CrossSbtTeststrait ScalaTeststrait ScalaJSTeststrait ScalaNativeTeststrait CheckstyleModuletrait CheckstyleXsltModuletrait ErrorProneModuletrait PalantirFormatModuletrait KtfmtBaseModuletrait KtfmtModuleobject KtfmtModuletrait KotlinModuletrait DetektModuletrait KotlinJsModuletrait KoverModuletrait KspModuletrait KotlinMavenModuletrait PlatformKotlinModuletrait ScalafmtModuleobject ScalafmtWorkerModuletrait BomModuletrait JlinkModuletrait JpackageModuletrait MavenModuletrait SbtModuletrait CrossSbtModuletrait SbtNativeModuletrait PlatformModuleBasetrait PlatformScalaModuletrait PublishModuletrait ScalaModuletrait ScalaJSModuletrait TestScalaJSModuletrait CrossModuleBasetrait CrossScalaModuletrait CrossScalaVersionRangestrait UnidocModuletrait ScalaNativeModuletrait TestScalaNativeModuleobject PublishModuletrait TestModuletrait Junit4trait Junit5trait Munittrait ScalaChecktrait ScalaTesttrait Specs2trait TestNgtrait Utesttrait Weavertrait ZioTestShow all
Attributes
- Source
- Task.scala
- Supertypes
Attributes
- Source
- WorkspaceRoot.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WorkspaceRoot.type
Types
Attributes
- Source
- Segment.scala
Attributes
- Source
- Segment.scala
Attributes
- Source
- package.scala
Value members
Concrete fields
Attributes
- Source
- Segment.scala
Attributes
- Source
- Segment.scala
Attributes
- Source
- package.scala