Packages

trait RevapiModule extends BaseClass with PublishModule

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RevapiModule
  2. PublishModule
  3. JavaModule
  4. SemanticDbJavaModule
  5. OfflineSupportModule
  6. CoursierModule
  7. GenIdeaModule
  8. RunModule
  9. TaskModule
  10. JavaModuleBase
  11. BspModule
  12. WithZincWorker
  13. Module
  14. BaseClass
  15. Cacher
  16. Cacher
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type JavaTests = JavaModuleTests
    Definition Classes
    JavaModule
    Annotations
    @nowarn()

Deprecated Type Members

  1. trait JavaModuleTests extends BaseClass with JavaModule with TestModule
    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill 0.11.10) Use JavaTests instead

Abstract Value Members

  1. abstract def pomSettings: T[PomSettings]

    Configuration for the pom.xml metadata file published with this module

    Configuration for the pom.xml metadata file published with this module

    Definition Classes
    PublishModule
  2. abstract def publishVersion: T[String]

    The artifact version that this module would be published as

    The artifact version that this module would be published as

    Definition Classes
    PublishModule

Concrete Value Members

  1. object millInternal 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

    Definition Classes
    Module
    Annotations
    @internal()
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def allIvyDeps: T[Agg[scalalib.Dep]]

    Aggregation of mandatoryIvyDeps and ivyDeps.

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

    Definition Classes
    JavaModule
  6. def allLocalMainClasses: T[Seq[String]]
    Definition Classes
    RunModule
  7. def allSourceFiles: T[Seq[api.PathRef]]

    All individual source files fed into the Java compiler

    All individual source files fed into the Java compiler

    Definition Classes
    JavaModuleSemanticDbJavaModule
  8. def allSources: T[Seq[api.PathRef]]

    The folders containing all source files fed into the compiler

    The folders containing all source files fed into the compiler

    Definition Classes
    JavaModule
  9. def artifactId: T[String]

    The exact id of the artifact to be published.

    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

    Definition Classes
    JavaModule
  10. def artifactMetadata: T[Artifact]
    Definition Classes
    PublishModule
  11. def artifactName: T[String]

    Override this to change the published artifact id.

    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.

    Definition Classes
    JavaModule
  12. def artifactNameParts: T[Seq[String]]
    Definition Classes
    JavaModule
  13. def artifactSuffix: T[String]

    The suffix appended to the artifact IDs during publishing

    The suffix appended to the artifact IDs during publishing

    Definition Classes
    JavaModule
  14. def artifactTypes: T[Set[Type]]

    Default artifact types to fetch and put in the classpath.

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

    Definition Classes
    JavaModule
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def assembly: T[api.PathRef]

    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

    Definition Classes
    JavaModule
  17. 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.

    Definition Classes
    JavaModule
  18. def bindDependency: define.Task[(scalalib.Dep) => scalalib.BoundDep]

    Bind a dependency (Dep) to the actual module context (e.g.

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

    returns

    The BoundDep

    Definition Classes
    CoursierModule
  19. def bspBuildTarget: BspBuildTarget

    Use to fill most fields of BuildTarget.

    Use to fill most fields of BuildTarget.

    Definition Classes
    JavaModuleSemanticDbJavaModuleBspModule
    Annotations
    @internal()
  20. def bspBuildTargetData: define.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

    Definition Classes
    JavaModuleBspModule
    Annotations
    @internal()
  21. def bspCompileClassesPath: T[UnresolvedPath]

    The path to the compiled classes by compile without forcing to actually run the compilation.

    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

    Definition Classes
    JavaModule
    Annotations
    @internal()
  22. def bspCompileClasspath: T[Agg[UnresolvedPath]]

    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

    Definition Classes
    JavaModule
    Annotations
    @internal()
  23. def bspCompiledClassesAndSemanticDbFiles: T[UnresolvedPath]
    Definition Classes
    SemanticDbJavaModule
  24. def bspDisplayName: String
    Definition Classes
    BspModule
  25. def bspDisplayName0: String
    Definition Classes
    BspModule
  26. def bspJvmBuildTargetTask: define.Task[JvmBuildTarget]
    Definition Classes
    JavaModule
    Annotations
    @internal()
  27. def bspLocalClasspath: T[Agg[UnresolvedPath]]

    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

    Definition Classes
    JavaModule
    Annotations
    @internal()
  28. def bspLocalRunClasspath: T[Agg[UnresolvedPath]]

    Same as localRunClasspath but for use in BSP server.

    Same as localRunClasspath but for use in BSP server.

    Keep in sync with localRunClasspath

    Definition Classes
    JavaModule
  29. def bspTransitiveCompileClasspath: T[Agg[UnresolvedPath]]

    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

    Definition Classes
    JavaModule
    Annotations
    @internal()
  30. def bspTransitiveLocalClasspath: T[Agg[UnresolvedPath]]

    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

    Definition Classes
    JavaModule
    Annotations
    @internal()
  31. def cachedTarget[T](t: => T)(implicit c: Enclosing): T
    Attributes
    protected[this]
    Definition Classes
    Cacher → Cacher
  32. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  33. def compile: T[CompilationResult]

    Compiles the current module to generate compiled classfiles/bytecode.

    Compiles the current module to generate compiled classfiles/bytecode.

    When you override this, you probably also want/need to override bspCompileClassesPath, as that needs to point to the same compilation output path.

    Keep in sync with bspCompileClassesPath

    Definition Classes
    JavaModuleSemanticDbJavaModule
  34. def compileClasspath: T[Agg[api.PathRef]]

    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

    Definition Classes
    JavaModuleSemanticDbJavaModule
  35. def compileIvyDeps: T[Agg[scalalib.Dep]]

    Same as ivyDeps, but only present at compile time.

    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

    Definition Classes
    JavaModule
  36. def compileModuleDeps: Seq[scalalib.JavaModule]

    The compile-only direct dependencies of this module.

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

    Definition Classes
    JavaModule
  37. final def compileModuleDepsChecked: Seq[scalalib.JavaModule]

    Same as compileModuleDeps but checked to not contain cycles.

    Same as compileModuleDeps but checked to not contain cycles.

    Definition Classes
    JavaModule
  38. def compileResources: T[Seq[api.PathRef]]

    The folders where the compile time resource files for this module live.

    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.

    Definition Classes
    JavaModule
  39. def compiledClassesAndSemanticDbFiles: T[api.PathRef]
    Definition Classes
    SemanticDbJavaModule
  40. def coursierCacheCustomizer: define.Task[Option[(FileCache[coursier.util.Task]) => FileCache[coursier.util.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))
       )
    }
    Definition Classes
    CoursierModule
  41. 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.

    Definition Classes
    JavaModuleTaskModule
  42. def defaultResolver: define.Task[Resolver]
    Definition Classes
    CoursierModule
  43. def docJar: T[api.PathRef]

    The documentation jar, containing all the Javadoc/Scaladoc HTML files, for publishing to Maven Central

    The documentation jar, containing all the Javadoc/Scaladoc HTML files, for publishing to Maven Central

    Definition Classes
    JavaModule
  44. def docJarUseArgsFile: T[Boolean]

    Control whether docJar-target should use a file to pass command line arguments to the javadoc tool.

    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.

    Definition Classes
    JavaModule
  45. def docResources: T[Seq[api.PathRef]]

    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.

    Definition Classes
    JavaModule
    See also

    docSources

  46. def docSources: T[Seq[api.PathRef]]

    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.

    Definition Classes
    JavaModule
    See also

    docResources

  47. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  49. def extraPublish: T[Seq[PublishInfo]]

    Extra artifacts to publish.

    Extra artifacts to publish.

    Definition Classes
    PublishModule
  50. def finalMainClass: T[String]
    Definition Classes
    JavaModuleRunModule
  51. def finalMainClassOpt: T[Either[String, String]]
    Definition Classes
    JavaModuleRunModule
  52. def forkArgs: T[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

    Definition Classes
    JavaModuleRunModule
  53. def forkEnv: T[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

    Definition Classes
    JavaModuleRunModule
  54. def forkWorkingDir: T[Path]
    Definition Classes
    JavaModuleRunModule
  55. def generatedSources: T[Seq[api.PathRef]]

    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

    Definition Classes
    JavaModule
  56. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  57. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  58. def ideaCompileOutput: T[PathRef]
    Definition Classes
    GenIdeaModule
  59. def ideaConfigFiles(ideaConfigVersion: Int): define.Task[Seq[IdeaConfigFile]]

    Contribute components to idea config files.

    Contribute components to idea config files.

    Definition Classes
    GenIdeaModule
  60. def ideaJavaModuleFacets(ideaConfigVersion: Int): define.Task[Seq[JavaFacet]]

    Contribute facets to the Java module configuration.

    Contribute facets to the Java module configuration.

    ideaConfigVersion

    The IDEA configuration version in use. Probably 4.

    Definition Classes
    GenIdeaModule
  61. def intellijModulePath: Path
    Definition Classes
    GenIdeaModule
  62. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  63. def ivy: T[api.PathRef]
    Definition Classes
    PublishModule
  64. def ivyDeps: T[Agg[scalalib.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

    Definition Classes
    JavaModuleJavaModuleBase
  65. def ivyDepsTree(args: IvyDepsTreeArgs = IvyDepsTreeArgs()): define.Command[Unit]

    Command to print the transitive dependency tree to STDOUT.

    Command to print the transitive dependency tree to STDOUT.

    Definition Classes
    JavaModule
  66. def jar: T[api.PathRef]

    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

    Definition Classes
    JavaModule
  67. def javacOptions: T[Seq[String]]

    Options to pass to the java compiler

    Options to pass to the java compiler

    Definition Classes
    JavaModuleSemanticDbJavaModule
  68. def javadocOptions: T[Seq[String]]

    Additional options to be used by the javadoc tool.

    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.

    Definition Classes
    JavaModule
  69. def launcher: define.Target[api.PathRef]

    Builds a command-line "launcher" file that can be used to run this module's code, without the Mill process.

    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

    Definition Classes
    JavaModule
  70. def localClasspath: T[Seq[api.PathRef]]

    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

    Definition Classes
    JavaModule
  71. def localCompileClasspath: T[Agg[api.PathRef]]

    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

    Definition Classes
    JavaModule
  72. def localRunClasspath: T[Seq[api.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

    Definition Classes
    JavaModuleRunModule
  73. def mainClass: T[Option[String]]

    Allows you to specify an explicit main class to use for the run command.

    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

    Definition Classes
    JavaModuleRunModule
  74. def mandatoryIvyDeps: T[Agg[scalalib.Dep]]

    Mandatory ivy dependencies that are typically always required and shouldn't be removed by overriding ivyDeps, e.g.

    Mandatory ivy dependencies that are typically always required and shouldn't be removed by overriding ivyDeps, e.g. the scala-library in the ScalaModule.

    Definition Classes
    JavaModule
  75. def mandatoryJavacOptions: T[Seq[String]]

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

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

    Definition Classes
    JavaModuleSemanticDbJavaModule
  76. def manifest: T[JarManifest]

    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

    Definition Classes
    PublishModuleJavaModule
  77. def mapDependencies: define.Task[(Dependency) => Dependency]

    Map dependencies before resolving them.

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

    Definition Classes
    CoursierModule
  78. implicit def millModuleBasePath: BasePath
    Definition Classes
    Module
  79. def millModuleDirectChildren: Seq[define.Module]
    Definition Classes
    Module
  80. implicit def millModuleExternal: External
    Definition Classes
    Module
  81. implicit def millModuleSegments: Segments
    Definition Classes
    Module
  82. implicit def millModuleShared: Foreign
    Definition Classes
    Module
  83. def millOuterCtx: Ctx
    Definition Classes
    BaseClass
  84. def millSourcePath: Path
    Definition Classes
    Module
  85. def moduleDeps: Seq[scalalib.PublishModule]

    The direct dependencies of this module.

    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.

    Definition Classes
    PublishModuleJavaModule
    See also

    moduleDepschecked

  86. final def moduleDepsChecked: Seq[scalalib.JavaModule]

    Same as moduleDeps but checked to not contain cycles.

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

    Definition Classes
    JavaModule
  87. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  88. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  89. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  90. def platformSuffix: T[String]

    What platform suffix to use for publishing, e.g.

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

    Definition Classes
    JavaModule
  91. def pom: T[api.PathRef]
    Definition Classes
    PublishModule
  92. def pomPackagingType: String

    The packaging type.

    The packaging type. See PackagingType for specially handled values.

    Definition Classes
    PublishModule
  93. def pomParentProject: T[Option[Artifact]]

    POM parent project.

    POM parent project.

    Definition Classes
    PublishModule
    See also

    Project Inheritance

  94. def prepareOffline(all: Flag): define.Command[Unit]

    all

    If true fetches also source dependencies

    Definition Classes
    JavaModuleOfflineSupportModule
  95. def prependShellScript: T[String]

    What shell script to use to launch the executable generated by assembly.

    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

    Definition Classes
    JavaModule
  96. def printDepsTree(inverse: Boolean, additionalDeps: define.Task[Agg[scalalib.BoundDep]], whatDependsOn: List[JavaOrScalaModule]): define.Task[Unit]

    Task that print the transitive dependency tree to STDOUT.

    Task that print the transitive dependency tree to STDOUT. NOTE: that when whatDependsOn is used with inverse it will just be ignored since when using whatDependsOn the tree _must_ be inversed to work, so this will always be set as true.

    inverse

    Invert the tree representation, so that the root is on the bottom.

    additionalDeps

    Additional dependency to be included into the tree.

    whatDependsOn

    possible list of modules to target in the tree in order to see where a dependency stems from.

    Attributes
    protected
    Definition Classes
    JavaModule
  97. def publish(sonatypeCreds: String = "", signed: Boolean = true, gpgArgs: Seq[String] = Seq.empty, release: Boolean = true, readTimeout: Int = 30 * 60 * 1000, connectTimeout: Int = 30 * 60 * 1000, awaitTimeout: Int = 30 * 60 * 1000, stagingRelease: Boolean = true): define.Command[Unit]

    Publish all given artifacts to Sonatype.

    Publish all given artifacts to Sonatype. Uses environment variables MILL_SONATYPE_USERNAME and MILL_SONATYPE_PASSWORD as credentials.

    sonatypeCreds

    Sonatype credentials in format username:password. If specified, environment variables will be ignored. Note: consider using environment variables over this argument due to security reasons.

    gpgArgs

    GPG arguments. Defaults to --batch --yes -a -b. Specifying this will override/remove the defaults. Add the default args to your args to keep them.

    Definition Classes
    PublishModule
  98. def publishArtifacts: T[PublishData]
    Definition Classes
    PublishModule
  99. def publishLocal(localIvyRepo: String = null): define.Command[Unit]

    Publish artifacts to a local ivy repository.

    Publish artifacts to a local ivy repository.

    localIvyRepo

    The local ivy repository. If not defined, the default resolution is used (probably $HOME/.ivy2/local).

    Definition Classes
    PublishModule
  100. def publishLocalCached: T[Seq[api.PathRef]]

    Publish artifacts the local ivy repository.

    Publish artifacts the local ivy repository.

    Definition Classes
    PublishModule
  101. def publishM2Local(m2RepoPath: String = (os.home / ".m2/repository").toString()): define.Command[Seq[api.PathRef]]

    Publish artifacts to a local Maven repository.

    Publish artifacts to a local Maven repository.

    m2RepoPath

    The path to the local repository as string (default: $HOME/.m2repository).

    returns

    PathRefs to published files.

    Definition Classes
    PublishModule
  102. def publishM2LocalCached: T[Seq[api.PathRef]]

    Publish artifacts to the local Maven repository.

    Publish artifacts to the local Maven repository.

    returns

    PathRefs to published files.

    Definition Classes
    PublishModule
  103. def publishProperties: T[Map[String, String]]

    Properties to be published with the published pom/ivy XML.

    Properties to be published with the published pom/ivy XML. Use super.publishProperties() ++ when overriding to avoid losing default properties.

    Definition Classes
    PublishModule
    Since

    Mill after 0.10.0-M5

  104. def publishSelfDependency: T[Artifact]
    Definition Classes
    PublishModule
  105. def publishXmlDeps: define.Task[Agg[Dependency]]
    Definition Classes
    PublishModule
  106. def recursiveModuleDeps: Seq[scalalib.JavaModule]

    The direct and indirect dependencies of this module

    The direct and indirect dependencies of this module

    Definition Classes
    JavaModule
  107. def recursiveRunModuleDeps: Seq[scalalib.JavaModule]

    The direct and indirect runtime module dependencies of this module

    The direct and indirect runtime module dependencies of this module

    Definition Classes
    JavaModule
  108. def repositoriesTask: define.Task[Seq[Repository]]

    The repositories used to resolved dependencies with resolveDeps().

    The repositories used to resolved dependencies with resolveDeps().

    Definition Classes
    CoursierModule
  109. def resolutionCustomizer: define.Task[Option[(Resolution) => Resolution]]

    Customize the coursier resolution process.

    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))
      )
    }
    Definition Classes
    CoursierModule
  110. def resolutionParams: define.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.

    Definition Classes
    CoursierModule
  111. def resolveDeps(deps: define.Task[Agg[scalalib.BoundDep]], sources: Boolean = false, artifactTypes: Option[Set[Type]] = None): define.Task[Agg[api.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.

    deps

    The dependencies to resolve.

    sources

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

    artifactTypes

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

    returns

    The PathRefs to the resolved files.

    Definition Classes
    CoursierModule
  112. def resolvePublishDependency: define.Task[(scalalib.Dep) => Dependency]
    Definition Classes
    JavaModule
  113. def resolvedIvyDeps: T[Agg[api.PathRef]]

    Resolved dependencies based on transitiveIvyDeps and transitiveCompileIvyDeps.

    Resolved dependencies based on transitiveIvyDeps and transitiveCompileIvyDeps.

    Definition Classes
    JavaModule
  114. def resolvedRunIvyDeps: T[Agg[api.PathRef]]
    Definition Classes
    JavaModule
  115. def resolvedSemanticDbJavaPluginIvyDeps: T[Agg[api.PathRef]]
    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  116. def resources: T[Seq[api.PathRef]]

    The folders where the resource files for this module live.

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

    Definition Classes
    JavaModuleJavaModuleBase
  117. def revapi(args: String*): Command[PathRef]

    Runs Revapi CLI on this module's archives.

    Runs Revapi CLI on this module's archives.

    args

    additional CLI options

    returns

    CLI working directory

  118. def revapiArtifactTypes: T[Set[Type]]

    Artifact types to resolve archives and supplement files (dependencies)

  119. def revapiCacheDir: T[PathRef]

    Location of local cache of extensions to use to locate artifacts

  120. def revapiClasspath: T[Agg[PathRef]]

    Classpath containing the Revapi CLI

  121. def revapiCliVersion: T[String]

    Revapi CLI version

  122. def revapiConfigFiles: T[Seq[PathRef]]

    List of configuration files

  123. def revapiExtensions: T[Seq[String]]

    List of Maven GAVs of Revapi extensions

    List of Maven GAVs of Revapi extensions

    Note

    Must be non-empty.

  124. def revapiJvmArgs: T[Seq[String]]

    JVM arguments for the Revapi CLI

  125. def revapiNewFiles: T[Agg[PathRef]]

    API archive and supplement files (dependencies) to compare

  126. def revapiOldFiles: T[Agg[PathRef]]

    API archive and supplement files (dependencies) to compare against

  127. def revapiRemoteRepositories: T[Seq[String]]

    URLs of remote Maven repositories to use for artifact resolution

  128. def run(args: define.Task[Args] = Task.Anon(Args())): define.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

    Definition Classes
    JavaModuleRunModule
  129. def runBackground(args: String*): define.Command[Unit]

    Runs this module's code in a background process, until it dies or runBackground is used again.

    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

    Definition Classes
    JavaModule
  130. 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)

    Definition Classes
    JavaModuleRunModule
  131. def runBackgroundRestartDelayMillis: T[Int]
    Definition Classes
    RunModule
  132. def runBackgroundTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
    Definition Classes
    RunModule
  133. def runClasspath: T[Seq[api.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

    Definition Classes
    JavaModuleRunModule
  134. def runForkedTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.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

    Definition Classes
    RunModule
  135. def runIvyDeps: T[Agg[scalalib.Dep]]

    Additional dependencies, only present at runtime.

    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.

    Definition Classes
    JavaModule
  136. def runLocal(args: define.Task[Args] = Task.Anon(Args())): define.Command[Unit]

    Runs this module's code in-process within an isolated classloader.

    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.

    Definition Classes
    JavaModuleRunModule
  137. def runLocalTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
    Definition Classes
    RunModule
  138. def runMain(mainClass: String, args: String*): define.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

    Definition Classes
    JavaModuleRunModule
  139. def runMainBackground(mainClass: String, args: String*): define.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

    Definition Classes
    JavaModuleRunModule
  140. def runMainLocal(mainClass: String, args: String*): define.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

    Definition Classes
    JavaModuleRunModule
  141. def runModuleDeps: Seq[scalalib.JavaModule]

    The runtime-only direct dependencies of this module.

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

    Definition Classes
    JavaModule
  142. final def runModuleDepsChecked: Seq[scalalib.JavaModule]

    Same as moduleDeps but checked to not contain cycles.

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

    Definition Classes
    JavaModule
  143. def runUseArgsFile: T[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.

    Definition Classes
    JavaModuleRunModule
  144. def runner: define.Task[Runner]
    Definition Classes
    RunModule
  145. def semanticDbData: T[api.PathRef]
    Definition Classes
    SemanticDbJavaModule
  146. def semanticDbEnablePluginScalacOptions: T[Seq[String]]

    Scalac options to activate the compiler plugins.

    Scalac options to activate the compiler plugins.

    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  147. def semanticDbJavaVersion: T[String]
    Definition Classes
    SemanticDbJavaModule
  148. def semanticDbPluginClasspath: T[Agg[api.PathRef]]
    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  149. def semanticDbPluginIvyDeps: T[Agg[scalalib.Dep]]
    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  150. def semanticDbScalaVersion: T[String]
    Definition Classes
    SemanticDbJavaModule
  151. def semanticDbVersion: T[String]
    Definition Classes
    SemanticDbJavaModule
  152. def showModuleDeps(recursive: Boolean = false): define.Command[Unit]

    Show the module dependencies.

    Show the module dependencies.

    recursive

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

    Definition Classes
    JavaModule
  153. def skipIdea: Boolean

    Skip Idea project file generation.

    Skip Idea project file generation.

    Definition Classes
    GenIdeaModule
  154. def sonatypeSnapshotUri: String
    Definition Classes
    PublishModule
  155. def sonatypeUri: String
    Definition Classes
    PublishModule
  156. def sourceJar: T[api.PathRef]

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

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

    Definition Classes
    JavaModule
  157. def sources: T[Seq[api.PathRef]]

    The folders where the source files for this module live

    The folders where the source files for this module live

    Definition Classes
    JavaModule
  158. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  159. def toString(): String
    Definition Classes
    Module → AnyRef → Any
  160. def transitiveCompileClasspath: T[Agg[api.PathRef]]

    The transitive version of compileClasspath

    The transitive version of compileClasspath

    Definition Classes
    JavaModule
  161. def transitiveCompileIvyDeps: T[Agg[scalalib.BoundDep]]

    The compile-only transitive ivy dependencies of this module and all it's upstream compile-only modules.

    The compile-only transitive ivy dependencies of this module and all it's upstream compile-only modules.

    Definition Classes
    JavaModule
  162. def transitiveIvyDeps: T[Agg[scalalib.BoundDep]]

    The transitive ivy dependencies of this module and all it's upstream modules.

    The transitive ivy dependencies of this module and all it's upstream modules. This is calculated from ivyDeps, mandatoryIvyDeps and recursively from moduleDeps.

    Definition Classes
    JavaModule
  163. def transitiveLocalClasspath: T[Agg[api.PathRef]]

    The transitive version of localClasspath

    The transitive version of localClasspath

    Definition Classes
    JavaModule
  164. def transitiveModuleCompileModuleDeps: Seq[scalalib.JavaModule]

    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

    Definition Classes
    JavaModule
  165. def transitiveModuleDeps: Seq[scalalib.JavaModule]

    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

    Definition Classes
    JavaModule
  166. def transitiveModuleRunModuleDeps: Seq[scalalib.JavaModule]

    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

    Definition Classes
    JavaModule
  167. def transitiveRunIvyDeps: T[Agg[scalalib.BoundDep]]

    The transitive run ivy dependencies of this module and all it's upstream modules.

    The transitive run ivy dependencies of this module and all it's upstream modules. This is calculated from runIvyDeps, mandatoryIvyDeps and recursively from moduleDeps.

    Definition Classes
    JavaModule
  168. def transitiveRunModuleDeps: Seq[scalalib.JavaModule]

    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

    Definition Classes
    JavaModule
  169. def unmanagedClasspath: T[Agg[api.PathRef]]

    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

    Definition Classes
    JavaModule
  170. def upstreamAssembly2: T[scalalib.Assembly]

    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

    Definition Classes
    JavaModule
  171. def upstreamAssemblyClasspath: T[Agg[api.PathRef]]

    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

    Definition Classes
    JavaModule
  172. def upstreamCompileOutput: T[Seq[CompilationResult]]

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

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

    Definition Classes
    JavaModuleSemanticDbJavaModule
  173. def versionScheme: T[Option[VersionScheme]]

    Optional information about the used version scheme.

    Optional information about the used version scheme. This may enable dependency resolvers to properly resolve version ranges and version mismatches (conflicts). This information will be written as info.versionScheme property in the pom.xml. See VersionScheme for possible values.

    You can find more info under these links: - https://docs.scala-lang.org/overviews/core/binary-compatibility-for-library-authors.html#recommended-versioning-scheme - https://www.scala-lang.org/blog/2021/02/16/preventing-version-conflicts-with-versionscheme.html - https://www.scala-sbt.org/1.x/docs/Publishing.html#Version+scheme - https://semver.org

    Definition Classes
    PublishModule
    Since

    Mill after 0.10.0-M5

  174. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  175. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  176. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  177. def zincAuxiliaryClassFileExtensions: T[Seq[String]]

    Files extensions that need to be managed by Zinc together with class files.

    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.

    Definition Classes
    JavaModule
  178. def zincIncrementalCompilation: T[Boolean]
    Definition Classes
    JavaModuleSemanticDbJavaModule
  179. def zincReportCachedProblems: T[Boolean]

    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.

    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.

    Definition Classes
    JavaModuleSemanticDbJavaModule
  180. def zincWorker: ModuleRef[scalalib.ZincWorkerModule]

Deprecated Value Members

  1. def bspJvmBuildTarget: JvmBuildTarget
    Definition Classes
    JavaModule
    Annotations
    @internal() @deprecated
    Deprecated

    (Since version 0.12.3) Use bspJvmBuildTargetTask instead

  2. def doRunBackground(taskDest: Path, runClasspath: Seq[api.PathRef], zwBackgroundWrapperClasspath: Agg[api.PathRef], forkArgs: Seq[String], forkEnv: Map[String, String], finalMainClass: String, forkWorkingDir: Path, runUseArgsFile: Boolean, backgroundOutputs: Option[(ProcessOutput, ProcessOutput)])(args: String*): (Ctx) => Result[Unit]
    Attributes
    protected
    Definition Classes
    JavaModuleRunModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill 0.12.0) Binary compat shim, use .runner().run(..., background=true)

  3. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  4. def resolveCoursierDependency: define.Task[(scalalib.Dep) => Dependency]
    Definition Classes
    CoursierModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.11.0-M0) To be replaced by bindDependency

  5. def resolveDeps(deps: define.Task[Agg[scalalib.BoundDep]], sources: Boolean): define.Task[Agg[api.PathRef]]
    Definition Classes
    CoursierModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.0-RC3) Use the override accepting artifactTypes

  6. def upstreamAssembly: T[api.PathRef]

    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

    This implementation is deprecated because of it's return value. Please use upstreamAssembly2 instead.

    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill 0.11.8) Use upstreamAssembly2 instead, which has a richer return value

Inherited from scalalib.PublishModule

Inherited from scalalib.JavaModule

Inherited from SemanticDbJavaModule

Inherited from OfflineSupportModule

Inherited from GenIdeaModule

Inherited from scalalib.RunModule

Inherited from define.TaskModule

Inherited from JavaModuleBase

Inherited from BspModule

Inherited from WithZincWorker

Inherited from define.Module

Inherited from BaseClass

Inherited from Cacher

Inherited from Cacher

Inherited from AnyRef

Inherited from Any

Ungrouped