mill.util
Non-language-specific utility APIs provided by Mill for use in your build.mill
and package.mill
, in addition to the core APIs provided in the mill.api
package
Attributes
Members list
Type members
Classlikes
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BuildInfo.type
Manage the setup, teardown, and caching of objects of type V safely in a multithreaded environment.
Manage the setup, teardown, and caching of objects of type V safely in a multithreaded environment.
The user provides the setup and teardown logic along with a maxCacheSize, and CachedFactory provides instances of V as requested using the withValue method. These instances are automatically constructed on-demand from the give key, cached with an LRU strategy, and destroyed when they are eventually evicted
Intended for relatively small caches approximately O(num-threads) in size that will typically get used in a build system, not intended for caching large amounts of entries
Attributes
- Source
- CachedFactory.scala
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
- Known subtypes
-
class ClassLoaderCachedFactory[T]class KotlinWorkerManager
Combination of CachedFactory and RefCountedClassLoaderCache, providing an easy way to generate values of type T to each be used in a single-thread while re-using the underling URLClassLoader
s where possible.
Combination of CachedFactory and RefCountedClassLoaderCache, providing an easy way to generate values of type T to each be used in a single-thread while re-using the underling URLClassLoader
s where possible.
Attributes
- Source
- ClassLoaderCachedFactory.scala
- Supertypes
- Known subtypes
-
class KotlinWorkerManager
Attributes
- Source
- FileSetContents.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FileSetContents.type
Attributes
- Source
- Version.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Represents a JAR manifest.
Represents a JAR manifest.
Value parameters
- groups
-
additional attributes for named entries
- main
-
the main manifest attributes
Attributes
- Companion
- object
- Source
- JarManifest.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- JarManifest.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JarManifest.type
Utilities related to the JVM platform: JVM processes, classloaders, java executables, launcher scripts, etc.
mill.api.Module containing all the default tasks that Mill provides: resolve, show, inspect, plan, etc.
mill.api.Module containing all the default tasks that Mill provides: resolve, show, inspect, plan, etc.
Attributes
- Companion
- object
- Source
- MainModule.scala
- Supertypes
-
trait MainModuleApiclass RootModule0trait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class MainRootModule
Attributes
- Companion
- trait
- Source
- MainModule.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MainModule.type
Attributes
- Source
- MainModule.scala
- Supertypes
-
trait MainModuletrait MainModuleApiclass RootModuletrait RootModuleApiclass RootModule0trait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
Attributes
- Source
- Version.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Source
- Version.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Caches classloaders that can be shared between different workers, keeping a reference count of each classloader and only closing it after no more references exist
Caches classloaders that can be shared between different workers, keeping a reference count of each classloader and only closing it after no more references exist
Attributes
- Source
- RefCountedClassLoaderCache.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Generic retry functionality
Generic retry functionality
Value parameters
- backoffMillis
-
What is the initial backoff time
- backoffMultiplier
-
How much to multiply the initial backoff each time
- count
-
How many times to retry before giving up
- filter
-
Whether or not we want to retry a given exception at a given retryCount; defaults to
true
to retry all exceptions, but can be made more fine-grained to only retry specific exceptions, or log them together with the retryCount - logger
-
Method to log messages upon failure
- t
-
The code block that we want to retry
- timeoutMillis
-
How much time we want to allow t to run. If passed, runs t in a separate thread and throws a
TimeoutException
if it takes too long
Attributes
- Returns
-
the value of evaluating t, or throws an exception if evaluating t fails more than count times
- Companion
- object
- Source
- Retry.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- Retry.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Retry.type
A value that makes sure it doesn't print anything on toString.
A value that makes sure it doesn't print anything on toString.
Attributes
- Note
-
this is not a
case class
to prevent it being accidentally printed with pprint. - Companion
- object
- Source
- Secret.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- Secret.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Secret.type
Mill Module to support selective test execution in large projects.
Mill Module to support selective test execution in large projects.
Read more about it at: https://mill-build.org/mill/large/selective-execution.html
Attributes
- Source
- SelectiveExecutionModule.scala
- Supertypes
Used in the signature of Task.Commands to allow them to take one or more tasks selectors as command line parameters, and automatically resolves them to mill.api.Task.Named instances for you to make use of in the body of the command.
Used in the signature of Task.Commands to allow them to take one or more tasks selectors as command line parameters, and automatically resolves them to mill.api.Task.Named instances for you to make use of in the body of the command.
Attributes
- Companion
- object
- Source
- Tasks.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- Tasks.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Tasks.type
Contains the additional instances of mainargs.TokensReader necessary to support Task.Command
entrypoints
Contains the additional instances of mainargs.TokensReader necessary to support Task.Command
entrypoints
Attributes
- Companion
- trait
- Source
- TokenReaders.scala
- Supertypes
- Self type
-
TokenReaders.type
Attributes
- Companion
- object
- Source
- TokenReaders.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object TokenReaders
Utilities to derive a useful version string from the Git commit history, including the latest tag, the commit SHA for non-tagged commits, number of commits since latest tag, and a DIRTY
suffix for workspaces with un-committed changes. Used via VcsVersion.Module.vcsState.format()
Utilities to derive a useful version string from the Git commit history, including the latest tag, the commit SHA for non-tagged commits, number of commits since latest tag, and a DIRTY
suffix for workspaces with un-committed changes. Used via VcsVersion.Module.vcsState.format()
Originally distributed under the Apache License, Version 2.0 as https://github.com/lefou/mill-vcs-version
Attributes
- Companion
- trait
- Source
- VcsVersion.scala
- Supertypes
-
trait VcsVersionclass ExternalModuleclass RootModule0trait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Self type
-
VcsVersion.type
Attributes
- Companion
- object
- Source
- VcsVersion.scala
- Supertypes
- Known subtypes
-
object VcsVersion
Attributes
- Companion
- object
- Source
- Version.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- class
- Source
- Version.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Version.type
Attributes
- Source
- VisualizeModule.scala
- Supertypes
-
class ExternalModuleclass RootModule0trait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Self type
-
VisualizeModule.type
Types
Attributes
- Source
- Secret.scala