OfflineSupport

mill.scalalib.OfflineSupport

Attributes

Source
OfflineSupport.scala
Graph
Supertypes
class BaseModule
trait Module
trait ModuleApi
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

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 * Prepare the project for working offline.\n * This should typically fetch (missing) resources like Maven dependencies.\n *\n * All fetched or cached resources will be returned. The result\n * - does not contain duplicates\n * - is also available as a JSON file at the stable location ` /mill/scalalib/OfflineSupport/prepareOffline.json`\n *\n * If used without parameters, it\'s equivalent to running\n * `mill mill.scalalib.OfflineSupport/prepareOffline __:OfflineSupportModule.prepareOffline`\n * but without duplicates.\n *\n * To select only a subset of modules (`foo` and `bar`), run\n * `mill mill.scalalib.OfflineSupport/prepareOffline \"{foo,bar}.prepareOffline\"`\n *\n * To fetch all dependencies, even rarely used ones, run\n * `mill mill.scalalib.OfflineSupport/prepareOffline __:OfflineSupportModule.prepareOffline --all`\n *\n * @param modules module and parameter selector\n */")
def prepareOffline(evaluator: Evaluator, modules: Leftover[String]): Command[Seq[PathRef]]

Prepare the project for working offline. This should typically fetch (missing) resources like Maven dependencies.

Prepare the project for working offline. This should typically fetch (missing) resources like Maven dependencies.

All fetched or cached resources will be returned. The result

  • does not contain duplicates
  • is also available as a JSON file at the stable location <mill-out>/mill/scalalib/OfflineSupport/prepareOffline.json

If used without parameters, it's equivalent to running mill mill.scalalib.OfflineSupport/prepareOffline __:OfflineSupportModule.prepareOffline but without duplicates.

To select only a subset of modules (foo and bar), run mill mill.scalalib.OfflineSupport/prepareOffline "{foo,bar}.prepareOffline"

To fetch all dependencies, even rarely used ones, run mill mill.scalalib.OfflineSupport/prepareOffline __:OfflineSupportModule.prepareOffline --all

Value parameters

modules

module and parameter selector

Attributes

Source
OfflineSupport.scala

Inherited methods

Attributes

Inherited from:
BaseModule
Source
BaseModule.scala
def moduleDir: Path

Attributes

Inherited from:
Module
Source
Module.scala
def moduleDirJava: Path

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala
override def moduleSegments: Segments

Attributes

Definition Classes
Inherited from:
ExternalModule
Source
ExternalModule.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

Implicits

Inherited implicits

implicit def moduleNestedCtx: Nested

Attributes

Inherited from:
Module
Source
Module.scala