KotlinModule

mill.kotlinlib.KotlinModule
trait KotlinModule extends JavaModule

Attributes

Source
KotlinModule.scala
Graph
Supertypes
trait JavaModule
trait RunModule
trait TaskModule
trait BspModule
trait Module
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Known subtypes
Self type

Members list

Type members

Classlikes

@Scaladoc(value = "/**\n * A test sub-module linked to its parent module best suited for unit-tests.\n */")

A test sub-module linked to its parent module best suited for unit-tests.

A test sub-module linked to its parent module best suited for unit-tests.

Attributes

Source
KotlinModule.scala
Supertypes
trait KotlinModule
trait JavaTests
trait TestModule
trait JavaModule
trait RunModule
trait TaskModule
trait BspModule
trait Module
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Known subtypes

Inherited classlikes

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
Supertypes
trait TestModule
trait JavaModule
trait RunModule
trait TaskModule
trait BspModule
trait Module
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Known subtypes
@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

Abstract methods

@Scaladoc(value = "/**\n * The Kotlin version to be used (for API and Language level settings).\n */")
def kotlinVersion: Target[String]

The Kotlin version to be used (for API and Language level settings).

The Kotlin version to be used (for API and Language level settings).

Attributes

Source
KotlinModule.scala

Concrete methods

@Scaladoc(value = "/**\n * All individual Java source files fed into the compiler.\n * Subset of [[allSourceFiles]].\n */")

All individual Java source files fed into the compiler. Subset of allSourceFiles.

All individual Java source files fed into the compiler. Subset of allSourceFiles.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * All individual Kotlin source files fed into the compiler.\n * Subset of [[allSourceFiles]].\n */")

All individual Kotlin source files fed into the compiler. Subset of allSourceFiles.

All individual Kotlin source files fed into the compiler. Subset of allSourceFiles.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * All individual source files fed into the compiler.\n */")
override def allSourceFiles: Target[Seq[PathRef]]

All individual source files fed into the compiler.

All individual source files fed into the compiler.

Attributes

Definition Classes
Source
KotlinModule.scala

Use to fill most fields of BuildTarget.

Use to fill most fields of BuildTarget.

Attributes

Definition Classes
Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Compiles all the sources to JVM class files.\n */")

Compiles all the sources to JVM class files.

Compiles all the sources to JVM class files.

Attributes

Definition Classes
Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The documentation jar, containing all the Dokka HTML files, for\n * publishing to Maven Central. You can control Dokka version by using [[dokkaVersion]]\n * and option by using [[dokkaOptions]].\n */")
override def docJar: Target[PathRef]

The documentation jar, containing all the Dokka HTML files, for publishing to Maven Central. You can control Dokka version by using dokkaVersion and option by using dokkaOptions.

The documentation jar, containing all the Dokka HTML files, for publishing to Maven Central. You can control Dokka version by using dokkaVersion and option by using dokkaOptions.

Attributes

Definition Classes
Source
KotlinModule.scala
protected def dokkaAnalysisPlatform: String

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Additional options to be used by the Dokka tool.\n * You should not set the `-outputDir` setting for specifying the target directory,\n * as that is done in the [[docJar]] target.\n */")
def dokkaOptions: Target[Seq[String]]

Additional options to be used by the Dokka tool. You should not set the -outputDir setting for specifying the target directory, as that is done in the docJar target.

Additional options to be used by the Dokka tool. You should not set the -outputDir setting for specifying the target directory, as that is done in the docJar target.

Attributes

Source
KotlinModule.scala
protected def dokkaSourceSetDisplayName: String

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Dokka version.\n */")
def dokkaVersion: Target[String]

Dokka version.

Dokka version.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The compiler API version. Default is not set.\n */")
def kotlinApiVersion: Target[String]

The compiler API version. Default is not set.

The compiler API version. Default is not set.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The actual Kotlin compile task (used by [[compile]] and [[kotlincHelp]]).\n */")
protected def kotlinCompileTask(extraKotlinArgs: Seq[String]): Task[CompilationResult]

The actual Kotlin compile task (used by compile and kotlincHelp).

The actual Kotlin compile task (used by compile and kotlincHelp).

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The Java classpath resembling the Kotlin compiler.\n * Default is derived from [[kotlinCompilerIvyDeps]].\n */")

The Java classpath resembling the Kotlin compiler. Default is derived from kotlinCompilerIvyDeps.

The Java classpath resembling the Kotlin compiler. Default is derived from kotlinCompilerIvyDeps.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The kotlin-compiler dependencies.\n *\n * It uses the embeddable version, if [[kotlinCompilerEmbeddable]] is `true`.\n */")

The kotlin-compiler dependencies.

The kotlin-compiler dependencies.

It uses the embeddable version, if kotlinCompilerEmbeddable is true.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Flag to use the embeddable kotlin compiler.\n * This can be necessary to avoid classpath conflicts or ensure\n * compatibility to the used set of plugins.\n *\n * See also https://discuss.kotlinlang.org/t/kotlin-compiler-embeddable-vs-kotlin-compiler/3196\n */")

Flag to use the embeddable kotlin compiler. This can be necessary to avoid classpath conflicts or ensure compatibility to the used set of plugins.

Flag to use the embeddable kotlin compiler. This can be necessary to avoid classpath conflicts or ensure compatibility to the used set of plugins.

See also https://discuss.kotlinlang.org/t/kotlin-compiler-embeddable-vs-kotlin-compiler/3196

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The Ivy/Coursier dependencies resembling the Kotlin compiler.\n *\n * Default is derived from [[kotlinCompilerVersion]] and [[kotlinCompilerEmbeddable]].\n */")

The Ivy/Coursier dependencies resembling the Kotlin compiler.

The Ivy/Coursier dependencies resembling the Kotlin compiler.

Default is derived from kotlinCompilerVersion and kotlinCompilerEmbeddable.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The version of the Kotlin compiler to be used.\n * Default is derived from [[kotlinVersion]].\n */")

The version of the Kotlin compiler to be used. Default is derived from kotlinVersion.

The version of the Kotlin compiler to be used. Default is derived from kotlinVersion.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Flag to use explicit API check in the compiler. Default is `false`.\n */")
def kotlinExplicitApi: Target[Boolean]

Flag to use explicit API check in the compiler. Default is false.

Flag to use explicit API check in the compiler. Default is false.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The compiler language version. Default is not set.\n */")

The compiler language version. Default is not set.

The compiler language version. Default is not set.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The kotlin-scripting-compiler dependencies.\n *\n * It uses the embeddable version, if [[kotlinCompilerEmbeddable]] is `true`.\n */")

The kotlin-scripting-compiler dependencies.

The kotlin-scripting-compiler dependencies.

It uses the embeddable version, if kotlinCompilerEmbeddable is true.

Attributes

Source
KotlinModule.scala
def kotlinWorkerTask: Task[KotlinWorker]

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Runs the Kotlin compiler with the `-help` argument to show you the built-in cmdline help.\n * You might want to add additional arguments like `-X` to see extra help.\n */")
def kotlincHelp(args: String*): Command[Unit]

Runs the Kotlin compiler with the -help argument to show you the built-in cmdline help. You might want to add additional arguments like -X to see extra help.

Runs the Kotlin compiler with the -help argument to show you the built-in cmdline help. You might want to add additional arguments like -X to see extra help.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * Additional Kotlin compiler options to be used by [[compile]].\n */")
def kotlincOptions: Target[Seq[String]]

Additional Kotlin compiler options to be used by compile.

Additional Kotlin compiler options to be used by compile.

Attributes

Source
KotlinModule.scala
@Scaladoc(value = "/**\n * The dependencies of this module.\n * Defaults to add the kotlin-stdlib dependency matching the [[kotlinVersion]].\n */")
override def mandatoryIvyDeps: Target[Seq[Dep]]

The dependencies of this module. Defaults to add the kotlin-stdlib dependency matching the kotlinVersion.

The dependencies of this module. Defaults to add the kotlin-stdlib dependency matching the kotlinVersion.

Attributes

Definition Classes
Source
KotlinModule.scala
protected def when(cond: Boolean)(args: String*): Seq[String]

Attributes

Source
KotlinModule.scala

Attributes

Source
KotlinModule.scala

Inherited methods

def allBomDeps: Task[Seq[BomDependency]]

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Aggregation of mandatoryIvyDeps and ivyDeps.\n * In most cases, instead of overriding this Target you want to override `ivyDeps` instead.\n */")
def allIvyDeps: Target[Seq[Dep]]

Aggregation of mandatoryIvyDeps and ivyDeps. In most cases, instead of overriding this Target you want to override ivyDeps instead.

Aggregation of mandatoryIvyDeps and ivyDeps. In most cases, instead of overriding this Target you want to override ivyDeps instead.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
def allLocalMainClasses: Target[Seq[String]]

Attributes

Inherited from:
RunModule
Source
RunModule.scala
@Scaladoc(value = "/**\n * The folders containing all source files fed into the compiler\n */")

The folders containing all source files fed into the compiler

The folders containing all source files fed into the compiler

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The exact id of the artifact to be published. You probably don\'t want to override this.\n * If you want to customize the name of the artifact, override artifactName instead.\n * If you want to customize the scala version in the artifact id, see ScalaModule.artifactScalaVersion\n */")
def artifactId: Target[String]

The exact id of the artifact to be published. You probably don't want to override this. If you want to customize the name of the artifact, override artifactName instead. If you want to customize the scala version in the artifact id, see ScalaModule.artifactScalaVersion

The exact id of the artifact to be published. You probably don't want to override this. If you want to customize the name of the artifact, override artifactName instead. If you want to customize the scala version in the artifact id, see ScalaModule.artifactScalaVersion

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Override this to change the published artifact id.\n * For example, by default a scala module foo.baz might be published as foo-baz_2.12 and a java module would be foo-baz.\n * Setting this to baz would result in a scala artifact baz_2.12 or a java artifact baz.\n */")
def artifactName: Target[String]

Override this to change the published artifact id. For example, by default a scala module foo.baz might be published as foo-baz_2.12 and a java module would be foo-baz. Setting this to baz would result in a scala artifact baz_2.12 or a java artifact baz.

Override this to change the published artifact id. For example, by default a scala module foo.baz might be published as foo-baz_2.12 and a java module would be foo-baz. Setting this to baz would result in a scala artifact baz_2.12 or a java artifact baz.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
def artifactNameParts: Target[Seq[String]]

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The suffix appended to the artifact IDs during publishing\n */")
def artifactSuffix: Target[String]

The suffix appended to the artifact IDs during publishing

The suffix appended to the artifact IDs during publishing

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Default artifact types to fetch and put in the classpath. Add extra types\n * here if you\'d like fancy artifact extensions to be fetched.\n */")
def artifactTypes: Target[Set[Type]]

Default artifact types to fetch and put in the classpath. Add extra types here if you'd like fancy artifact extensions to be fetched.

Default artifact types to fetch and put in the classpath. Add extra types here if you'd like fancy artifact extensions to be fetched.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * An executable uber-jar/assembly containing all the resources and compiled\n * classfiles from this module and all it\'s upstream modules and dependencies\n */")

An executable uber-jar/assembly containing all the resources and compiled classfiles from this module and all it's upstream modules and dependencies

An executable uber-jar/assembly containing all the resources and compiled classfiles from this module and all it's upstream modules and dependencies

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
@Scaladoc(value = "/**\n * Configuration for the [[assembly]] task: how files and file-conflicts are\n * managed when combining multiple jar files into one big assembly jar.\n */")
def assemblyRules: Seq[Rule]

Configuration for the assembly task: how files and file-conflicts are managed when combining multiple jar files into one big assembly jar.

Configuration for the assembly task: how files and file-conflicts are managed when combining multiple jar files into one big assembly jar.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Bind a dependency ([[Dep]]) to the actual module context (e.g. the scala version and the platform suffix)\n * @return The [[BoundDep]]\n */")

Bind a dependency (Dep) to the actual module context (e.g. the scala version and the platform suffix)

Bind a dependency (Dep) to the actual module context (e.g. the scala version and the platform suffix)

Attributes

Returns

The BoundDep

Inherited from:
CoursierModule
Source
CoursierModule.scala
@Scaladoc(value = "/**\n * Any Bill of Material (BOM) dependencies you want to add to this Module, in the format\n * ivy\"org:name:version\"\n */")
def bomIvyDeps: Target[Seq[Dep]]

Any Bill of Material (BOM) dependencies you want to add to this Module, in the format ivy"org:name:version"

Any Bill of Material (BOM) dependencies you want to add to this Module, in the format ivy"org:name:version"

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Bill of Material (BOM) dependencies of this module.\n * This is meant to be overridden to add BOM dependencies.\n * To read the value, you should use [[bomModuleDepsChecked]] instead,\n * which uses a cached result which is also checked to be free of cycles.\n * @see [[bomModuleDepsChecked]]\n */")

Bill of Material (BOM) dependencies of this module. This is meant to be overridden to add BOM dependencies. To read the value, you should use bomModuleDepsChecked instead, which uses a cached result which is also checked to be free of cycles.

Bill of Material (BOM) dependencies of this module. This is meant to be overridden to add BOM dependencies. To read the value, you should use bomModuleDepsChecked instead, which uses a cached result which is also checked to be free of cycles.

Attributes

See also
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[bomModuleDeps]] but checked to not contain cycles.\n * Prefer this over using [[bomModuleDeps]] directly.\n */")

Same as bomModuleDeps but checked to not contain cycles. Prefer this over using bomModuleDeps directly.

Same as bomModuleDeps but checked to not contain cycles. Prefer this over using bomModuleDeps directly.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
override def bspBuildTargetData: Task[Option[(String, AnyRef)]]

Use to populate the BuildTarget.{dataKind,data} fields.

Use to populate the BuildTarget.{dataKind,data} fields.

Mill specific implementations:

  • JvmBuildTarget
  • ScalaBuildTarget

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The path to the compiled classes by [[compile]] without forcing to actually run the compilation.\n * This is safe in an BSP context, as the compilation done later will use the\n * exact same compilation settings, so we can safely use the same path.\n *\n * Keep in sync with [[compile]]\n */")

The path to the compiled classes by compile without forcing to actually run the compilation. This is safe in an BSP context, as the compilation done later will use the exact same compilation settings, so we can safely use the same path.

The path to the compiled classes by compile without forcing to actually run the compilation. This is safe in an BSP context, as the compilation done later will use the exact same compilation settings, so we can safely use the same path.

Keep in sync with compile

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[compileClasspath]], but does not trigger compilation targets, if possible.\n *\n * Keep in sync with [[compileClasspath]]\n */")

Same as compileClasspath, but does not trigger compilation targets, if possible.

Same as compileClasspath, but does not trigger compilation targets, if possible.

Keep in sync with compileClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
def bspDisplayName: String

Attributes

Inherited from:
BspModule
Source
BspModule.scala
def bspDisplayName0: String

Attributes

Inherited from:
BspModule
Source
BspModule.scala

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[localClasspath]], but with all dependencies on [[compile]]\n * replaced by their non-compiling [[bspCompileClassesPath]] variants.\n *\n * Keep in sync with [[localClasspath]]\n */")

Same as localClasspath, but with all dependencies on compile replaced by their non-compiling bspCompileClassesPath variants.

Same as localClasspath, but with all dependencies on compile replaced by their non-compiling bspCompileClassesPath variants.

Keep in sync with localClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[localRunClasspath]] but for use in BSP server.\n *\n * Keep in sync with [[localRunClasspath]]\n */")

Same as localRunClasspath but for use in BSP server.

Same as localRunClasspath but for use in BSP server.

Keep in sync with localRunClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[transitiveCompileClasspath]], but with all dependencies on [[compile]]\n * replaced by their non-compiling [[bspCompileClassesPath]] variants.\n *\n * Keep in sync with [[transitiveCompileClasspath]]\n */")

Same as transitiveCompileClasspath, but with all dependencies on compile replaced by their non-compiling bspCompileClassesPath variants.

Same as transitiveCompileClasspath, but with all dependencies on compile replaced by their non-compiling bspCompileClassesPath variants.

Keep in sync with transitiveCompileClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[transitiveLocalClasspath]], but with all dependencies on [[compile]]\n * replaced by their non-compiling [[bspCompileClassesPath]] variants.\n *\n * Keep in sync with [[transitiveLocalClasspath]]\n */")

Same as transitiveLocalClasspath, but with all dependencies on compile replaced by their non-compiling bspCompileClassesPath variants.

Same as transitiveLocalClasspath, but with all dependencies on compile replaced by their non-compiling bspCompileClassesPath variants.

Keep in sync with transitiveLocalClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * All classfiles and resources from upstream modules and dependencies\n * necessary to compile this module.\n *\n * Keep in sync with [[bspCompileClasspath]]\n */")

All classfiles and resources from upstream modules and dependencies necessary to compile this module.

All classfiles and resources from upstream modules and dependencies necessary to compile this module.

Keep in sync with bspCompileClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as `ivyDeps`, but only present at compile time. Useful for e.g.\n * macro-related dependencies like `scala-reflect` that doesn\'t need to be\n * present at runtime\n */")

Same as ivyDeps, but only present at compile time. Useful for e.g. macro-related dependencies like scala-reflect that doesn't need to be present at runtime

Same as ivyDeps, but only present at compile time. Useful for e.g. macro-related dependencies like scala-reflect that doesn't need to be present at runtime

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The compile-only direct dependencies of this module. These are *not*\n * transitive, and only take effect in the module that they are declared in.\n */")

The compile-only direct dependencies of this module. These are not transitive, and only take effect in the module that they are declared in.

The compile-only direct dependencies of this module. These are not transitive, and only take effect in the module that they are declared in.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/** Same as [[compileModuleDeps]] but checked to not contain cycles. */")

Same as compileModuleDeps but checked to not contain cycles.

Same as compileModuleDeps but checked to not contain cycles.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The folders where the compile time resource files for this module live.\n * If your resources files do not necessarily need to be seen by the compiler,\n * you should use [[resources]] instead.\n */")

The folders where the compile time resource files for this module live. If your resources files do not necessarily need to be seen by the compiler, you should use resources instead.

The folders where the compile time resource files for this module live. If your resources files do not necessarily need to be seen by the compiler, you should use resources instead.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Customize the coursier file cache.\n *\n * This is rarely needed to be changed, but sometimes e.g. you want to load a coursier plugin.\n * Doing so requires adding to coursier\'s classpath. To do this you could use the following:\n * {{{\n * override def coursierCacheCustomizer = Task.Anon {\n * Some( (fc: coursier.cache.FileCache[Task]) =>\n * fc.withClassLoaders(Seq(classOf[coursier.cache.protocol.S3Handler].getClassLoader))\n * )\n * }\n * }}}\n * @return\n */")
def coursierCacheCustomizer: Task[Option[FileCache[Task] => FileCache[Task]]]

Customize the coursier file cache.

Customize the coursier file cache.

This is rarely needed to be changed, but sometimes e.g. you want to load a coursier plugin. Doing so requires adding to coursier's classpath. To do this you could use the following:

 override def coursierCacheCustomizer = Task.Anon {
    Some( (fc: coursier.cache.FileCache[Task]) =>
      fc.withClassLoaders(Seq(classOf[coursier.cache.protocol.S3Handler].getClassLoader))
    )
 }

Attributes

Inherited from:
CoursierModule
Source
CoursierModule.scala
@Scaladoc(value = "/**\n * The `coursier.Dependency` to use to refer to this module\n */")
def coursierDependency: Dependency

The coursier.Dependency to use to refer to this module

The coursier.Dependency to use to refer to this module

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The `coursier.Project` corresponding to this `JavaModule`.\n *\n * This provides details about this module to the coursier resolver (details such as\n * dependencies, BOM dependencies, dependency management, etc.). Beyond more general\n * resolution parameters (such as artifact types, etc.), this should be the only way\n * we provide details about this module to coursier.\n */")
def coursierProject: Task[Project]

The coursier.Project corresponding to this JavaModule.

The coursier.Project corresponding to this JavaModule.

This provides details about this module to the coursier resolver (details such as dependencies, BOM dependencies, dependency management, etc.). Beyond more general resolution parameters (such as artifact types, etc.), this should be the only way we provide details about this module to coursier.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
def defaultCommandName(): String

The name of the default command, which will be automatically executed if the module name is provided at the Mill command line.

The name of the default command, which will be automatically executed if the module name is provided at the Mill command line.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Attributes

Inherited from:
CoursierModule
Source
CoursierModule.scala
@Scaladoc(value = "/**\n * Dependency management data\n *\n * Versions and exclusions in dependency management override those of transitive dependencies,\n * while they have no effect if the corresponding dependency isn\'t pulled during dependency\n * resolution.\n *\n * For example, the following forces com.lihaoyi::os-lib to version 0.11.3, and\n * excludes org.slf4j:slf4j-api from com.lihaoyi::cask that it forces to version 0.9.4\n * {{{\n * def depManagement = super.depManagement() ++ Seq(\n * ivy\"com.lihaoyi::os-lib:0.11.3\",\n * ivy\"com.lihaoyi::cask:0.9.5\".exclude(\"org.slf4j\", \"slf4j-api\")\n * )\n * }}}\n */")
def depManagement: Target[Seq[Dep]]

Dependency management data

Dependency management data

Versions and exclusions in dependency management override those of transitive dependencies, while they have no effect if the corresponding dependency isn't pulled during dependency resolution.

For example, the following forces com.lihaoyi::os-lib to version 0.11.3, and excludes org.slf4j:slf4j-api from com.lihaoyi::cask that it forces to version 0.9.4

 def depManagement = super.depManagement() ++ Seq(
   ivy"com.lihaoyi::os-lib:0.11.3",
   ivy"com.lihaoyi::cask:0.9.5".exclude("org.slf4j", "slf4j-api")
 )

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Control whether `docJar`-target should use a file to pass command line arguments to the javadoc tool.\n * Defaults to `true` on Windows.\n * Beware: Using an args-file is probably not supported for very old javadoc versions.\n */")
def docJarUseArgsFile: Target[Boolean]

Control whether docJar-target should use a file to pass command line arguments to the javadoc tool. Defaults to true on Windows. Beware: Using an args-file is probably not supported for very old javadoc versions.

Control whether docJar-target should use a file to pass command line arguments to the javadoc tool. Defaults to true on Windows. Beware: Using an args-file is probably not supported for very old javadoc versions.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Extra directories to be copied into the documentation.\n *\n * Typically, includes static files such as html and markdown, but depends\n * on the doc tool that is actually used.\n * @see [[docSources]]\n */")

Extra directories to be copied into the documentation.

Extra directories to be copied into the documentation.

Typically, includes static files such as html and markdown, but depends on the doc tool that is actually used.

Attributes

See also
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Directories to be processed by the API documentation tool.\n *\n * Typically, includes the source files to generate documentation from.\n * @see [[docResources]]\n */")

Directories to be processed by the API documentation tool.

Directories to be processed by the API documentation tool.

Typically, includes the source files to generate documentation from.

Attributes

See also
Inherited from:
JavaModule
Source
JavaModule.scala
def finalMainClass: Target[String]

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
def finalMainClassOpt: Target[Either[String, String]]

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Any command-line parameters you want to pass to the forked JVM under `run`,\n * `test` or `repl`\n */")
override def forkArgs: Target[Seq[String]]

Any command-line parameters you want to pass to the forked JVM under run, test or repl

Any command-line parameters you want to pass to the forked JVM under run, test or repl

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Similar to `forkArgs` but only applies to the `bat` launcher script\n */")
def forkCmdArgs: Target[Seq[String]]

Similar to forkArgs but only applies to the bat launcher script

Similar to forkArgs but only applies to the bat launcher script

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
@Scaladoc(value = "/**\n * Any environment variables you want to pass to the forked JVM under `run`,\n * `test` or `repl`\n */")
override def forkEnv: Target[Map[String, String]]

Any environment variables you want to pass to the forked JVM under run, test or repl

Any environment variables you want to pass to the forked JVM under run, test or repl

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Similar to `forkArgs` but only applies to the `sh` launcher script\n */")
def forkShellArgs: Target[Seq[String]]

Similar to forkArgs but only applies to the sh launcher script

Similar to forkArgs but only applies to the sh launcher script

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
override def forkWorkingDir: Target[Path]

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Folders containing source files that are generated rather than\n * handwritten; these files can be generated in this target itself,\n * or can refer to files generated from other targets\n */")

Folders containing source files that are generated rather than handwritten; these files can be generated in this target itself, or can refer to files generated from other targets

Folders containing source files that are generated rather than handwritten; these files can be generated in this target itself, or can refer to files generated from other targets

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Attributes

Inherited from:
GenIdeaModule
Source
GenIdeaModule.scala
@Scaladoc(value = "/**\n * Contribute components to idea config files.\n */")
def ideaConfigFiles(ideaConfigVersion: Int): Task[Seq[IdeaConfigFile]]

Contribute components to idea config files.

Contribute components to idea config files.

Attributes

Inherited from:
GenIdeaModule
Source
GenIdeaModule.scala
@Scaladoc(value = "/**\n * Contribute facets to the Java module configuration.\n * @param ideaConfigVersion The IDEA configuration version in use. Probably `4`.\n * @return\n */")
def ideaJavaModuleFacets(ideaConfigVersion: Int): Task[Seq[JavaFacet]]

Contribute facets to the Java module configuration.

Contribute facets to the Java module configuration.

Value parameters

ideaConfigVersion

The IDEA configuration version in use. Probably 4.

Attributes

Inherited from:
GenIdeaModule
Source
GenIdeaModule.scala
def intellijModulePath: Path

Attributes

Inherited from:
GenIdeaModule
Source
GenIdeaModule.scala
@Scaladoc(value = "/**\n * The repository that knows about this project itself and its module dependencies\n */")

The repository that knows about this project itself and its module dependencies

The repository that knows about this project itself and its module dependencies

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Mill internal repositories to be used during dependency resolution\n *\n * These are not meant to be modified by Mill users, unless you really know what you\'re\n * doing.\n */")
def internalRepositories: Task[Seq[Repository]]

Mill internal repositories to be used during dependency resolution

Mill internal repositories to be used during dependency resolution

These are not meant to be modified by Mill users, unless you really know what you're doing.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Any ivy dependencies you want to add to this Module, in the format\n * ivy\"org::name:version\" for Scala dependencies or ivy\"org:name:version\"\n * for Java dependencies\n */")
def ivyDeps: Target[Seq[Dep]]

Any ivy dependencies you want to add to this Module, in the format ivy"org::name:version" for Scala dependencies or ivy"org:name:version" for Java dependencies

Any ivy dependencies you want to add to this Module, in the format ivy"org::name:version" for Scala dependencies or ivy"org:name:version" for Java dependencies

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Command to print the transitive dependency tree to STDOUT.\n */")
def ivyDepsTree(args: IvyDepsTreeArgs): Command[Unit]

Command to print the transitive dependency tree to STDOUT.

Command to print the transitive dependency tree to STDOUT.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * A jar containing only this module\'s resources and compiled classfiles,\n * without those from upstream modules and dependencies\n */")

A jar containing only this module's resources and compiled classfiles, without those from upstream modules and dependencies

A jar containing only this module's resources and compiled classfiles, without those from upstream modules and dependencies

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Options to pass to the java compiler\n */")
def javacOptions: Target[Seq[String]]

Options to pass to the java compiler

Options to pass to the java compiler

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Additional options to be used by the javadoc tool.\n * You should not set the `-d` setting for specifying the target directory,\n * as that is done in the [[docJar]] target.\n */")
def javadocOptions: Target[Seq[String]]

Additional options to be used by the javadoc tool. You should not set the -d setting for specifying the target directory, as that is done in the docJar target.

Additional options to be used by the javadoc tool. You should not set the -d setting for specifying the target directory, as that is done in the docJar target.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Builds a command-line "launcher" file that can be used to run this module's code, without the Mill process. Useful for deployment & other places where you do not want a build tool running

Builds a command-line "launcher" file that can be used to run this module's code, without the Mill process. Useful for deployment & other places where you do not want a build tool running

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The *output* classfiles/resources from this module, used for execution,\n * excluding upstream modules and third-party dependencies, but including unmanaged dependencies.\n *\n * This is build from [[localCompileClasspath]] and [[localRunClasspath]]\n * as the parts available \"before compilation\" and \"after compilation\".\n *\n * Keep in sync with [[bspLocalClasspath]]\n */")

The output classfiles/resources from this module, used for execution, excluding upstream modules and third-party dependencies, but including unmanaged dependencies.

The output classfiles/resources from this module, used for execution, excluding upstream modules and third-party dependencies, but including unmanaged dependencies.

This is build from localCompileClasspath and localRunClasspath as the parts available "before compilation" and "after compilation".

Keep in sync with bspLocalClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The *input* classfiles/resources from this module, used during compilation,\n * excluding upstream modules and third-party dependencies\n */")

The input classfiles/resources from this module, used during compilation, excluding upstream modules and third-party dependencies

The input classfiles/resources from this module, used during compilation, excluding upstream modules and third-party dependencies

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The part of the [[localClasspath]] which is available \"after compilation\".\n *\n * Keep in sync with [[bspLocalRunClasspath]]\n */")
override def localRunClasspath: Target[Seq[PathRef]]

The part of the localClasspath which is available "after compilation".

The part of the localClasspath which is available "after compilation".

Keep in sync with bspLocalRunClasspath

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Allows you to specify an explicit main class to use for the `run` command.\n * If none is specified, the classpath is searched for an appropriate main\n * class to use if one exists\n */")
def mainClass: Target[Option[String]]

Allows you to specify an explicit main class to use for the run command. If none is specified, the classpath is searched for an appropriate main class to use if one exists

Allows you to specify an explicit main class to use for the run command. If none is specified, the classpath is searched for an appropriate main class to use if one exists

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Additional options for the java compiler derived from other module settings.\n */")
def mandatoryJavacOptions: Target[Seq[String]]

Additional options for the java compiler derived from other module settings.

Additional options for the java compiler derived from other module settings.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Creates a manifest representation which can be modified or replaced\n * The default implementation just adds the `Manifest-Version`, `Main-Class` and `Created-By` attributes\n */")

Creates a manifest representation which can be modified or replaced The default implementation just adds the Manifest-Version, Main-Class and Created-By attributes

Creates a manifest representation which can be modified or replaced The default implementation just adds the Manifest-Version, Main-Class and Created-By attributes

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
@Scaladoc(value = "/**\n * Map dependencies before resolving them.\n * Override this to customize the set of dependencies.\n */")
def mapDependencies: Task[Dependency => Dependency]

Map dependencies before resolving them. Override this to customize the set of dependencies.

Map dependencies before resolving them. Override this to customize the set of dependencies.

Attributes

Inherited from:
CoursierModule
Source
CoursierModule.scala
def moduleCtx: Ctx

Attributes

Inherited from:
BaseClass
Source
Module.scala
@Scaladoc(value = "/**\n * The direct dependencies of this module.\n * This is meant to be overridden to add dependencies.\n * To read the value, you should use [[moduleDepsChecked]] instead,\n * which uses a cached result which is also checked to be free of cycle.\n * @see [[moduleDepschecked]]\n */")

The direct dependencies of this module. This is meant to be overridden to add dependencies. To read the value, you should use moduleDepsChecked instead, which uses a cached result which is also checked to be free of cycle.

The direct dependencies of this module. This is meant to be overridden to add dependencies. To read the value, you should use moduleDepsChecked instead, which uses a cached result which is also checked to be free of cycle.

Attributes

See also

moduleDepschecked

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[moduleDeps]] but checked to not contain cycles.\n * Prefer this over using [[moduleDeps]] directly.\n */")
final def moduleDepsChecked: Seq[JavaModule]

Same as moduleDeps but checked to not contain cycles. Prefer this over using moduleDeps directly.

Same as moduleDeps but checked to not contain cycles. Prefer this over using moduleDeps directly.

Attributes

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

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala
@Scaladoc(value = "/**\n * What platform suffix to use for publishing, e.g. `_sjs` for Scala.js\n * projects\n */")
def platformSuffix: Target[String]

What platform suffix to use for publishing, e.g. _sjs for Scala.js projects

What platform suffix to use for publishing, e.g. _sjs for Scala.js projects

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * @param all If `true` fetches also source dependencies\n */")
override def prepareOffline(all: Flag): Command[Unit]

Value parameters

all

If true fetches also source dependencies

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * What shell script to use to launch the executable generated by `assembly`.\n * Defaults to a generic \"universal\" launcher that should work for Windows,\n * OS-X and Linux\n */")
def prependShellScript: Target[String]

What shell script to use to launch the executable generated by assembly. Defaults to a generic "universal" launcher that should work for Windows, OS-X and Linux

What shell script to use to launch the executable generated by assembly. Defaults to a generic "universal" launcher that should work for Windows, OS-X and Linux

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
@Scaladoc(value = "/** The direct and indirect dependencies of this module */")

The direct and indirect dependencies of this module

The direct and indirect dependencies of this module

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/** The direct and indirect runtime module dependencies of this module */")

The direct and indirect runtime module dependencies of this module

The direct and indirect runtime module dependencies of this module

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The repositories used to resolved dependencies with [[resolveDeps()]].\n */")
def repositoriesTask: Task[Seq[Repository]]

The repositories used to resolved dependencies with resolveDeps.

The repositories used to resolved dependencies with resolveDeps.

Attributes

Inherited from:
CoursierModule
Source
CoursierModule.scala
@Scaladoc(value = "/**\n * Customize the coursier resolution process.\n * This is rarely needed to changed, as the default try to provide a\n * highly reproducible resolution process. But sometime, you need\n * more control, e.g. you want to add some OS or JDK specific resolution properties\n * which are sometimes used by Maven and therefore found in dependency artifact metadata.\n * For example, the JavaFX artifacts are known to use OS specific properties.\n * To fix resolution for JavaFX, you could override this task like the following:\n * {{{\n * override def resolutionCustomizer = Task.Anon {\n * Some( (r: coursier.core.Resolution) =>\n * r.withOsInfo(coursier.core.Activation.Os.fromProperties(sys.props.toMap))\n * )\n * }\n * }}}\n * @return\n */")
def resolutionCustomizer: Task[Option[Resolution => Resolution]]

Customize the coursier resolution process. This is rarely needed to changed, as the default try to provide a highly reproducible resolution process. But sometime, you need more control, e.g. you want to add some OS or JDK specific resolution properties which are sometimes used by Maven and therefore found in dependency artifact metadata. For example, the JavaFX artifacts are known to use OS specific properties. To fix resolution for JavaFX, you could override this task like the following:

Customize the coursier resolution process. This is rarely needed to changed, as the default try to provide a highly reproducible resolution process. But sometime, you need more control, e.g. you want to add some OS or JDK specific resolution properties which are sometimes used by Maven and therefore found in dependency artifact metadata. For example, the JavaFX artifacts are known to use OS specific properties. To fix resolution for JavaFX, you could override this task like the following:

   override def resolutionCustomizer = Task.Anon {
     Some( (r: coursier.core.Resolution) =>
       r.withOsInfo(coursier.core.Activation.Os.fromProperties(sys.props.toMap))
     )
   }

Attributes

Inherited from:
CoursierModule
Source
CoursierModule.scala
@Scaladoc(value = "/**\n * Resolution parameters, allowing to customize resolution internals\n *\n * This rarely needs to be changed. This allows to disable the new way coursier handles\n * BOMs since coursier 2.1.17 (used in Mill since 0.12.3) for example, with:\n * {{{\n * def resolutionParams = super.resolutionParams()\n * .withEnableDependencyOverrides(Some(false))\n * }}}\n *\n * Note that versions forced with `Dep#forceVersion()` take over forced versions manually\n * set in `resolutionParams`. The former should be favored to force versions in dependency\n * resolution.\n *\n * The Scala version set via `ScalaModule#scalaVersion` also takes over any Scala version\n * provided via `ResolutionParams#scalaVersionOpt`.\n *\n * The default configuration set in `ResolutionParams#defaultConfiguration` is ignored when\n * Mill fetches dependencies to be passed to the compiler (equivalent to Maven \"compile scope\").\n * In that case, it forces the default configuration to be \"compile\". On the other hand, when\n * fetching dependencies for runtime (equivalent to Maven \"runtime scope\"), the value in\n * `ResolutionParams#defaultConfiguration` is used.\n */")
def resolutionParams: Task[ResolutionParams]

Resolution parameters, allowing to customize resolution internals

Resolution parameters, allowing to customize resolution internals

This rarely needs to be changed. This allows to disable the new way coursier handles BOMs since coursier 2.1.17 (used in Mill since 0.12.3) for example, with:

 def resolutionParams = super.resolutionParams()
   .withEnableDependencyOverrides(Some(false))

Note that versions forced with Dep#forceVersion() take over forced versions manually set in resolutionParams. The former should be favored to force versions in dependency resolution.

The Scala version set via ScalaModule#scalaVersion also takes over any Scala version provided via ResolutionParams#scalaVersionOpt.

The default configuration set in ResolutionParams#defaultConfiguration is ignored when Mill fetches dependencies to be passed to the compiler (equivalent to Maven "compile scope"). In that case, it forces the default configuration to be "compile". On the other hand, when fetching dependencies for runtime (equivalent to Maven "runtime scope"), the value in ResolutionParams#defaultConfiguration is used.

Attributes

Inherited from:
CoursierModule
Source
CoursierModule.scala
@Scaladoc(value = "/**\n * Task that resolves the given dependencies using the repositories defined with [[repositoriesTask]].\n *\n * @param deps The dependencies to resolve.\n * @param sources If `true`, resolve source dependencies instead of binary dependencies (JARs).\n * @param artifactTypes If non-empty, pull the passed artifact types rather than the default ones from coursier\n * @return The [[PathRef]]s to the resolved files.\n */")
def resolveDeps(deps: Task[Seq[BoundDep]], sources: Boolean, artifactTypes: Option[Set[Type]]): Task[Seq[PathRef]]

Task that resolves the given dependencies using the repositories defined with repositoriesTask.

Task that resolves the given dependencies using the repositories defined with repositoriesTask.

Value parameters

artifactTypes

If non-empty, pull the passed artifact types rather than the default ones from coursier

deps

The dependencies to resolve.

sources

If true, resolve source dependencies instead of binary dependencies (JARs).

Attributes

Returns

The PathRefs to the resolved files.

Inherited from:
CoursierModule
Source
CoursierModule.scala

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Build the assembly for third-party dependencies separate from the current\n * classpath\n *\n * This should allow much faster assembly creation in the common case where\n * third-party dependencies do not change\n */")

Build the assembly for third-party dependencies separate from the current classpath

Build the assembly for third-party dependencies separate from the current classpath

This should allow much faster assembly creation in the common case where third-party dependencies do not change

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
@Scaladoc(value = "/**\n * Resolved dependencies\n */")

Resolved dependencies

Resolved dependencies

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The folders where the resource files for this module live.\n * If you need resources to be seen by the compiler, use [[compileResources]].\n */")
def resources: Target[Seq[PathRef]]

The folders where the resource files for this module live. If you need resources to be seen by the compiler, use compileResources.

The folders where the resource files for this module live. If you need resources to be seen by the compiler, use compileResources.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Runs this module\'s code in a subprocess and waits for it to finish\n */")
def run(args: Task[Args]): Command[Unit]

Runs this module's code in a subprocess and waits for it to finish

Runs this module's code in a subprocess and waits for it to finish

Attributes

Inherited from:
RunModule
Source
RunModule.scala
@Scaladoc(value = "/**\n * Runs this module\'s code in a background process, until it dies or\n * `runBackground` is used again. This lets you continue using Mill while\n * the process is running in the background: editing files, compiling, and\n * only re-starting the background process when you\'re ready.\n *\n * You can also use `-w foo.runBackground` to make Mill watch for changes\n * and automatically recompile your code & restart the background process\n * when ready. This is useful when working on long-running server processes\n * that would otherwise run forever\n */")
def runBackground(args: String*): Command[Unit]

Runs this module's code in a background process, until it dies or runBackground is used again. This lets you continue using Mill while the process is running in the background: editing files, compiling, and only re-starting the background process when you're ready.

Runs this module's code in a background process, until it dies or runBackground is used again. This lets you continue using Mill while the process is running in the background: editing files, compiling, and only re-starting the background process when you're ready.

You can also use -w foo.runBackground to make Mill watch for changes and automatically recompile your code & restart the background process when ready. This is useful when working on long-running server processes that would otherwise run forever

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
override def runBackgroundLogToConsole: Boolean

If true, stdout and stderr of the process executed by runBackground or runMainBackground is sent to mill's stdout/stderr (which usually flow to the console).

If true, stdout and stderr of the process executed by runBackground or runMainBackground is sent to mill's stdout/stderr (which usually flow to the console).

If false, output will be directed to files stdout.log and stderr.log in runBackground.dest (or runMainBackground.dest)

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala

Attributes

Inherited from:
RunModule
Source
RunModule.scala
def runBackgroundTask(mainClass: Task[String], args: Task[Args]): Task[Unit]

Attributes

Inherited from:
RunModule
Source
RunModule.scala
@Scaladoc(value = "/**\n * All classfiles and resources from upstream modules and dependencies\n * necessary to run this module\'s code after compilation\n */")
override def runClasspath: Target[Seq[PathRef]]

All classfiles and resources from upstream modules and dependencies necessary to run this module's code after compilation

All classfiles and resources from upstream modules and dependencies necessary to run this module's code after compilation

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Runs this module\'s code in a subprocess and waits for it to finish\n */")
def runForkedTask(mainClass: Task[String], args: Task[Args]): Task[Unit]

Runs this module's code in a subprocess and waits for it to finish

Runs this module's code in a subprocess and waits for it to finish

Attributes

Inherited from:
RunModule
Source
RunModule.scala
@Scaladoc(value = "/**\n * Additional dependencies, only present at runtime. Useful for e.g.\n * selecting different versions of a dependency to use at runtime after your\n * code has already been compiled.\n */")
def runIvyDeps: Target[Seq[Dep]]

Additional dependencies, only present at runtime. Useful for e.g. selecting different versions of a dependency to use at runtime after your code has already been compiled.

Additional dependencies, only present at runtime. Useful for e.g. selecting different versions of a dependency to use at runtime after your code has already been compiled.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Runs this module\'s code in-process within an isolated classloader. This is\n * faster than `run`, but in exchange you have less isolation between runs\n * since the code can dirty the parent Mill process and potentially leave it\n * in a bad state.\n */")
def runLocal(args: Task[Args]): Command[Unit]

Runs this module's code in-process within an isolated classloader. This is faster than run, but in exchange you have less isolation between runs since the code can dirty the parent Mill process and potentially leave it in a bad state.

Runs this module's code in-process within an isolated classloader. This is faster than run, but in exchange you have less isolation between runs since the code can dirty the parent Mill process and potentially leave it in a bad state.

Attributes

Inherited from:
RunModule
Source
RunModule.scala
def runLocalTask(mainClass: Task[String], args: Task[Args]): Task[Unit]

Attributes

Inherited from:
RunModule
Source
RunModule.scala
@Scaladoc(value = "/**\n * Same as `run`, but lets you specify a main class to run\n */")
override def runMain(mainClass: String, args: String*): Command[Unit]

Same as run, but lets you specify a main class to run

Same as run, but lets you specify a main class to run

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as `runBackground`, but lets you specify a main class to run\n */")
override def runMainBackground(mainClass: String, args: String*): Command[Unit]

Same as runBackground, but lets you specify a main class to run

Same as runBackground, but lets you specify a main class to run

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as `runLocal`, but lets you specify a main class to run\n */")
override def runMainLocal(mainClass: String, args: String*): Command[Unit]

Same as runLocal, but lets you specify a main class to run

Same as runLocal, but lets you specify a main class to run

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The runtime-only direct dependencies of this module. These *are* transitive,\n * and so get propagated to downstream modules automatically\n */")

The runtime-only direct dependencies of this module. These are transitive, and so get propagated to downstream modules automatically

The runtime-only direct dependencies of this module. These are transitive, and so get propagated to downstream modules automatically

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Same as [[moduleDeps]] but checked to not contain cycles.\n * Prefer this over using [[moduleDeps]] directly.\n */")

Same as moduleDeps but checked to not contain cycles. Prefer this over using moduleDeps directly.

Same as moduleDeps but checked to not contain cycles. Prefer this over using moduleDeps directly.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Control whether `run*`-targets should use an args file to pass command line args, if possible.\n */")
def runUseArgsFile: Target[Boolean]

Control whether run*-targets should use an args file to pass command line args, if possible.

Control whether run*-targets should use an args file to pass command line args, if possible.

Attributes

Inherited from:
RunModule
Source
RunModule.scala

Attributes

Inherited from:
RunModule
Source
RunModule.scala

Attributes

Inherited from:
SemanticDbJavaModule
Source
SemanticDbJavaModule.scala

Attributes

Inherited from:
SemanticDbJavaModule
Source
SemanticDbJavaModule.scala
def semanticDbVersion: Target[String]

Attributes

Inherited from:
SemanticDbJavaModule
Source
SemanticDbJavaModule.scala
@Scaladoc(value = "/**\n * Show the module dependencies.\n * @param recursive If `true` include all recursive module dependencies, else only show direct dependencies.\n */")
def showModuleDeps(recursive: Boolean): Command[Unit]

Show the module dependencies.

Show the module dependencies.

Value parameters

recursive

If true include all recursive module dependencies, else only show direct dependencies.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Skip Idea project file generation.\n */")
def skipIdea: Boolean

Skip Idea project file generation.

Skip Idea project file generation.

Attributes

Inherited from:
GenIdeaModule
Source
GenIdeaModule.scala
@Scaladoc(value = "/**\n * The source jar, containing only source code for publishing to Maven Central\n */")

The source jar, containing only source code for publishing to Maven Central

The source jar, containing only source code for publishing to Maven Central

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The folders where the source files for this module live\n */")
def sources: Target[Seq[PathRef]]

The folders where the source files for this module live

The folders where the source files for this module live

Attributes

Inherited from:
JavaModule
Source
JavaModule.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
@Scaladoc(value = "/**\n * The transitive version of `compileClasspath`\n */")

The transitive version of compileClasspath

The transitive version of compileClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Coursier project of this module and those of all its transitive module dependencies\n */")
def transitiveCoursierProjects: Task[Seq[Project]]

Coursier project of this module and those of all its transitive module dependencies

Coursier project of this module and those of all its transitive module dependencies

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Almost the same as [[transitiveLocalClasspath]], but using the [[jar]]s instead of [[localClasspath]].\n */")

Almost the same as transitiveLocalClasspath, but using the jars instead of localClasspath.

Almost the same as transitiveLocalClasspath, but using the jars instead of localClasspath.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The transitive version of `localClasspath`\n */")

The transitive version of localClasspath

The transitive version of localClasspath

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * All direct and indirect module dependencies of this module, including\n * compile-only dependencies: basically the modules whose classpath are needed\n * at compile-time.\n *\n * Note that `compileModuleDeps` are defined to be non-transitive, so we only\n * look at the direct `compileModuleDeps` when assembling this list\n */")

All direct and indirect module dependencies of this module, including compile-only dependencies: basically the modules whose classpath are needed at compile-time.

All direct and indirect module dependencies of this module, including compile-only dependencies: basically the modules whose classpath are needed at compile-time.

Note that compileModuleDeps are defined to be non-transitive, so we only look at the direct compileModuleDeps when assembling this list

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Like `recursiveModuleDeps` but also include the module itself,\n * basically the modules whose classpath are needed at runtime\n */")

Like recursiveModuleDeps but also include the module itself, basically the modules whose classpath are needed at runtime

Like recursiveModuleDeps but also include the module itself, basically the modules whose classpath are needed at runtime

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * All direct and indirect module dependencies of this module, including\n * compile-only dependencies: basically the modules whose classpath are needed\n * at runtime.\n *\n * Note that `runModuleDeps` are defined to be transitive\n */")

All direct and indirect module dependencies of this module, including compile-only dependencies: basically the modules whose classpath are needed at runtime.

All direct and indirect module dependencies of this module, including compile-only dependencies: basically the modules whose classpath are needed at runtime.

Note that runModuleDeps are defined to be transitive

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Like `recursiveModuleDeps` but also include the module itself,\n * basically the modules whose classpath are needed at runtime\n */")

Like recursiveModuleDeps but also include the module itself, basically the modules whose classpath are needed at runtime

Like recursiveModuleDeps but also include the module itself, basically the modules whose classpath are needed at runtime

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Additional jars, classfiles or resources to add to the classpath directly\n * from disk rather than being downloaded from Maven Central or other package\n * repositories\n */")

Additional jars, classfiles or resources to add to the classpath directly from disk rather than being downloaded from Maven Central or other package repositories

Additional jars, classfiles or resources to add to the classpath directly from disk rather than being downloaded from Maven Central or other package repositories

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Build the assembly for upstream dependencies separate from the current\n * classpath\n *\n * This should allow much faster assembly creation in the common case where\n * upstream dependencies do not change\n */")

Build the assembly for upstream dependencies separate from the current classpath

Build the assembly for upstream dependencies separate from the current classpath

This should allow much faster assembly creation in the common case where upstream dependencies do not change

Attributes

Inherited from:
AssemblyModule
Source
AssemblyModule.scala
@Scaladoc(value = "/**\n * All upstream classfiles and resources necessary to build and executable\n * assembly, but without this module\'s contribution\n */")

All upstream classfiles and resources necessary to build and executable assembly, but without this module's contribution

All upstream classfiles and resources necessary to build and executable assembly, but without this module's contribution

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * The upstream compilation output of all this module\'s upstream modules\n */")

The upstream compilation output of all this module's upstream modules

The upstream compilation output of all this module's upstream modules

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Upstream classfiles and resources from third-party libraries necessary to build an executable assembly

Upstream classfiles and resources from third-party libraries necessary to build an executable assembly

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Upstream classfiles and resources from locally-built modules necessary to build an executable assembly, but without this module's contribution

Upstream classfiles and resources from locally-built modules necessary to build an executable assembly, but without this module's contribution

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * Files extensions that need to be managed by Zinc together with class files.\n * This means, if zinc needs to remove a class file, it will also remove files\n * which match the class file basename and a listed file extension.\n */")

Files extensions that need to be managed by Zinc together with class files. This means, if zinc needs to remove a class file, it will also remove files which match the class file basename and a listed file extension.

Files extensions that need to be managed by Zinc together with class files. This means, if zinc needs to remove a class file, it will also remove files which match the class file basename and a listed file extension.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala
@Scaladoc(value = "/**\n * If `true`, we always show problems (errors, warnings, infos) found in all source files, even when they have not changed since the previous incremental compilation.\n * When `false`, we report only problems for files which we re-compiled.\n */")

If true, we always show problems (errors, warnings, infos) found in all source files, even when they have not changed since the previous incremental compilation. When false, we report only problems for files which we re-compiled.

If true, we always show problems (errors, warnings, infos) found in all source files, even when they have not changed since the previous incremental compilation. When false, we report only problems for files which we re-compiled.

Attributes

Inherited from:
JavaModule
Source
JavaModule.scala

Attributes

Definition Classes
Inherited from:
JavaModule
Source
JavaModule.scala

Implicits

Inherited implicits

implicit def moduleNestedCtx: Nested

Attributes

Inherited from:
Module
Source
Module.scala