Packages

t

mill.kotlinlib.android.AndroidAppKotlinModule

AndroidAppKotlinScreenshotTests

trait AndroidAppKotlinScreenshotTests extends BaseClass with AndroidAppKotlinModule with scalalib.TestModule with Junit5

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AndroidAppKotlinScreenshotTests
  2. Junit5
  3. TestModule
  4. AndroidAppKotlinModule
  5. KotlinModule
  6. AndroidAppModule
  7. JavaModule
  8. AssemblyModule
  9. SemanticDbJavaModule
  10. OfflineSupportModule
  11. CoursierModule
  12. GenIdeaModule
  13. RunModule
  14. TaskModule
  15. JavaModuleBase
  16. BspModule
  17. WithZincWorker
  18. Module
  19. BaseClass
  20. Cacher
  21. Cacher
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait AndroidAppInstrumentedTests extends BaseClass with AndroidAppModule with AndroidTestModule
    Definition Classes
    AndroidAppModule
  2. trait AndroidAppTests extends BaseClass with JavaTests
    Definition Classes
    AndroidAppModule
  3. trait KotlinTests extends BaseClass with JavaTests with KotlinModule

    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.

    Definition Classes
    KotlinModule
  4. trait AndroidAppKotlinInstrumentedTests extends BaseClass with AndroidAppKotlinModule with AndroidAppInstrumentedTests
    Definition Classes
    AndroidAppKotlinModule
  5. trait AndroidAppKotlinScreenshotTests extends BaseClass with AndroidAppKotlinModule with scalalib.TestModule with Junit5
    Definition Classes
    AndroidAppKotlinModule
  6. type CompileProblemReporter = api.CompileProblemReporter
    Definition Classes
    KotlinModule
  7. type JavaTests = JavaModuleTests
    Definition Classes
    JavaModule
    Annotations
    @nowarn()
  8. trait AndroidAppKotlinTests extends BaseClass with AndroidAppTests with KotlinTests
    Definition Classes
    AndroidAppKotlinModule

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 androidScreenshotTestMethods: Seq[(String, Seq[String])]
  2. abstract def namespace: String

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 adbDevices: T[String]
    Definition Classes
    AndroidAppModule
  6. def allBomDeps: define.Task[Agg[BomDependency]]
    Definition Classes
    JavaModule
  7. 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
  8. def allJavaSourceFiles: T[Seq[api.PathRef]]

    All individual Java source files fed into the compiler.

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

    Definition Classes
    KotlinModule
  9. def allKotlinSourceFiles: T[Seq[api.PathRef]]

    All individual Kotlin source files fed into the compiler.

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

    Definition Classes
    KotlinModule
  10. def allLocalMainClasses: T[Seq[String]]
    Definition Classes
    RunModule
  11. def allSourceFiles: T[Seq[api.PathRef]]

    All individual source files fed into the compiler.

    All individual source files fed into the compiler.

    Definition Classes
    KotlinModuleJavaModuleSemanticDbJavaModule
  12. 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
  13. def androidAaptOptions: T[Seq[String]]

    Specifies AAPT options for Android resource compilation.

    Specifies AAPT options for Android resource compilation.

    Definition Classes
    AndroidAppModule
  14. def androidAlignedUnsignedApk: T[api.PathRef]

    Optimizes the APK using the zipalign tool for better performance.

    Optimizes the APK using the zipalign tool for better performance.

    For more details on the zipalign tool, refer to: zipalign Documentation

    Definition Classes
    AndroidAppModule
  15. def androidApk: T[api.PathRef]

    Signs the APK using a keystore to generate a final, distributable APK.

    Signs the APK using a keystore to generate a final, distributable APK.

    The signing step is mandatory to distribute Android applications. It adds a cryptographic signature to the APK, verifying its authenticity. This method uses the apksigner tool along with a keystore file to sign the APK.

    If no keystore is available, a new one is generated using the keytool utility.

    For more details on the apksigner tool, refer to: apksigner Documentation

    Definition Classes
    AndroidAppModule
  16. def androidCompileSdk: T[Int]

    This setting defines which Android API level your project compiles against.

    This setting defines which Android API level your project compiles against. This is a required property for Android builds.

    It determines what Android APIs are available during compilation - your code can only use APIs from this level or lower.

    See https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels for more details.

    Definition Classes
    AndroidAppKotlinScreenshotTestsAndroidAppModule
  17. def androidDeviceId: String

    The device id as listed from avdmanager list device.

    The device id as listed from avdmanager list device. Default is medium_phone

    Definition Classes
    AndroidAppModule
  18. def androidDex: T[api.PathRef]

    Converts the generated JAR file into a DEX file using the d8 tool.

    Converts the generated JAR file into a DEX file using the d8 tool.

    returns

    os.Path to the Generated DEX File Directory

    Definition Classes
    AndroidAppModule
  19. def androidDiscoveredPreviews: T[(api.PathRef, Seq[Screenshot])]
  20. def androidEmulatorArchitecture: String

    The target architecture of the virtual device to be created by createAndroidVirtualDevice For example, "x86_64" (default).

    The target architecture of the virtual device to be created by createAndroidVirtualDevice For example, "x86_64" (default). For a list of system images and their architectures, see the Android SDK Manager sdkmanager --list.

    Definition Classes
    AndroidAppModule
  21. def androidEmulatorPort: String

    The emulator port where adb connects to.

    The emulator port where adb connects to. Defaults to 5554

    Definition Classes
    AndroidAppModule
  22. def androidEnableCompose: T[Boolean]

    Enable Jetpack Compose support in the module.

    Enable Jetpack Compose support in the module. Default is false.

    Definition Classes
    AndroidAppKotlinModule
  23. def androidInstall: Target[String]

    Installs the app to the android device identified by this configuration in androidVirtualDeviceIdentifier.

    Installs the app to the android device identified by this configuration in androidVirtualDeviceIdentifier.

    returns

    The name of the device the app was installed to

    Definition Classes
    AndroidAppModule
  24. def androidIsDebug: T[Boolean]

    Controls debug vs release build type.

    Controls debug vs release build type. Default is true, meaning debug build will be generated.

    This option will probably go away in the future once build variants are supported.

    Definition Classes
    AndroidAppModule
  25. def androidKeystore: T[api.PathRef]
    Attributes
    protected
    Definition Classes
    AndroidAppModule
  26. def androidLibsClassesJarMetaInf: T[Seq[api.PathRef]]

    Collect files from META-INF folder of classes.jar (not META-INF of aar in case of Android library).

    Collect files from META-INF folder of classes.jar (not META-INF of aar in case of Android library).

    Definition Classes
    AndroidAppModule
  27. def androidLibsRClasses: T[Seq[api.PathRef]]
    Definition Classes
    AndroidAppModule
  28. def androidLintAbortOnError: Boolean

    Determines whether the build should fail if Android Lint detects any issues.

    Determines whether the build should fail if Android Lint detects any issues.

    Definition Classes
    AndroidAppModule
  29. def androidLintArgs: T[Seq[String]]

    Specifies additional arguments for the Android Lint tool.

    Specifies additional arguments for the Android Lint tool. Allows for complete customization of the lint command.

    Definition Classes
    AndroidAppModule
  30. def androidLintBaselinePath: T[Option[api.PathRef]]

    Specifies the lint baseline XML file path.

    Specifies the lint baseline XML file path. This allows using a baseline to suppress known lint warnings.

    Definition Classes
    AndroidAppModule
  31. def androidLintConfigPath: T[Option[api.PathRef]]

    Specifies the lint configuration XML file path.

    Specifies the lint configuration XML file path. This allows setting custom lint rules or modifying existing ones.

    Definition Classes
    AndroidAppModule
  32. def androidLintReportFormat: T[Seq[javalib.android.AndroidLintReportFormat.Value]]

    Specifies the file format(s) of the lint report.

    Specifies the file format(s) of the lint report. Available file formats are defined in AndroidLintReportFormat, such as AndroidLintReportFormat.Html, AndroidLintReportFormat.Xml, AndroidLintReportFormat.Txt, and AndroidLintReportFormat.Sarif.

    Definition Classes
    AndroidAppModule
  33. def androidLintRun(): Command[api.PathRef]

    Runs the Android Lint tool to generate a report on code quality issues.

    Runs the Android Lint tool to generate a report on code quality issues.

    This method utilizes Android Lint, a tool provided by the Android SDK, to analyze the source code for potential bugs, performance issues, and best practices compliance. It generates a report in the specified format.

    The report is saved in the task's destination directory as "report.html" by default. It can be changed to other file format such as xml, txt and sarif.

    For more details on the Android Lint tool, refer to: https://developer.android.com/studio/write/lint

    Definition Classes
    AndroidAppModule
  34. def androidManifest: define.Task[api.PathRef]

    Provides os.Path to an XML file containing configuration and metadata about your android application.

    Provides os.Path to an XML file containing configuration and metadata about your android application.

    Definition Classes
    AndroidAppModule
  35. def androidMergedManifest: T[api.PathRef]

    Creates a merged manifest from application and dependencies manifests.

    Creates a merged manifest from application and dependencies manifests.

    See https://developer.android.com/build/manage-manifests for more details.

    Definition Classes
    AndroidAppKotlinScreenshotTestsAndroidAppModule
  36. def androidMinSdk: T[Int]

    The minimum SDK version to use.

    The minimum SDK version to use. Default is 1.

    See https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#min for more details.

    Definition Classes
    AndroidAppModule
  37. def androidPreviewScreenshotTestEngineClasspath: T[Agg[api.PathRef]]
  38. def androidReleaseKeyAlias: T[Option[String]]

    Name of the key alias in the release keystore.

    Name of the key alias in the release keystore. Default is not set.

    Definition Classes
    AndroidAppModule
  39. def androidReleaseKeyName: T[Option[String]]

    Name of the release keystore file.

    Name of the release keystore file. Default is not set.

    Definition Classes
    AndroidAppModule
  40. def androidReleaseKeyPass: T[Option[String]]

    Password for the release key.

    Password for the release key. Default is not set.

    Definition Classes
    AndroidAppModule
  41. def androidReleaseKeyPath: T[Option[api.PathRef]]

    Default os.Path to the keystore file, derived from androidReleaseKeyName().

    Default os.Path to the keystore file, derived from androidReleaseKeyName(). Users can customize the keystore file name to change this path.

    Definition Classes
    AndroidAppModule
  42. def androidReleaseKeyStorePass: T[Option[String]]

    Password for the release keystore.

    Password for the release keystore. Default is not set.

    Definition Classes
    AndroidAppModule
  43. def androidResources: T[(api.PathRef, Seq[api.PathRef])]

    Compiles Android resources and generates R.java and res.apk.

    Compiles Android resources and generates R.java and res.apk.

    returns

    Seq[PathRef] to the directory with application's R.java and res.apk and a list of the zip files containing the resource compiled files For more details on the aapt2 tool, refer to: aapt Documentation

    Definition Classes
    AndroidAppModule
  44. def androidScreenshotDeviceConfigurations: Seq[PreviewParams]

    Defines a list of specifications to create previews against.

    Defines a list of specifications to create previews against.

    For more information see https://developer.android.com/studio/preview/compose-screenshot-testing

  45. def androidScreenshotGeneratedResults: T[api.PathRef]

    The location to store the generated preview summary

  46. def androidScreenshotResults: T[api.PathRef]

    The location that the renderer results summary is, in the test engine's expected format i.e.

    The location that the renderer results summary is, in the test engine's expected format i.e. by renaming the screenshotResults key to screenshots

  47. def androidScreenshotTestDiffThreshold: Double

    Threshold of how strict the image diff should be

  48. def androidScreenshotTestResultDir: T[api.PathRef]
  49. def androidSdkModule: ModuleRef[AndroidSdkModule]

    Provides access to the Android SDK configuration.

    Provides access to the Android SDK configuration.

    Definition Classes
    AndroidAppKotlinScreenshotTestsAndroidAppModule
  50. def androidSignKeyDetails: T[Seq[String]]

    Generates the command-line arguments required for Android app signing.

    Generates the command-line arguments required for Android app signing.

    Uses the release keystore if release build type is set; otherwise, defaults to a generated debug keystore.

    Definition Classes
    AndroidAppModule
  51. def androidTargetSdk: T[Int]

    The target SDK version to use.

    The target SDK version to use. Default is equal to the androidCompileSdk value.

    See https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target for more details.

    Definition Classes
    AndroidAppModule
  52. def androidTransitiveResources: Target[Seq[api.PathRef]]
    Definition Classes
    AndroidAppModule
  53. def androidUnpackArchives: T[Seq[UnpackedDep]]

    Extracts JAR files and resources from AAR dependencies.

    Extracts JAR files and resources from AAR dependencies.

    Definition Classes
    AndroidAppModule
  54. def androidUnsignedApk: T[api.PathRef]

    Packages DEX files and Android resources into an unsigned APK.

    Packages DEX files and Android resources into an unsigned APK.

    returns

    A PathRef to the generated unsigned APK file (app.unsigned.apk).

    Definition Classes
    AndroidAppModule
  55. def androidVersionCode: T[Int]

    Version code of the application.

    Version code of the application. Default is 1.

    See https://developer.android.com/studio/publish/versioning for more details.

    Definition Classes
    AndroidAppModule
  56. def androidVersionName: T[String]

    The version name of the application.

    The version name of the application. Default is "1.0".

    See https://developer.android.com/studio/publish/versioning for more details.

    Definition Classes
    AndroidAppModule
  57. def androidVirtualDeviceIdentifier: String

    The name of the virtual device to be created by createAndroidVirtualDevice

    The name of the virtual device to be created by createAndroidVirtualDevice

    Definition Classes
    AndroidAppModule
  58. 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
  59. 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
  60. def artifactNameParts: T[Seq[String]]
    Definition Classes
    JavaModule
  61. 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
  62. def artifactTypes: T[Set[Type]]

    Adds "aar" to the handled artifact types.

    Adds "aar" to the handled artifact types.

    Definition Classes
    AndroidAppModuleJavaModule
  63. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  64. 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
    JavaModuleAssemblyModule
  65. 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
    JavaModuleAssemblyModule
  66. def bindDependency: define.Task[(scalalib.Dep) => 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
  67. def bomIvyDeps: T[Agg[scalalib.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"

    Definition Classes
    JavaModule
  68. def bomModuleDeps: Seq[BomModule]

    Bill of Material (BOM) dependencies of this module.

    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.

    Definition Classes
    JavaModule
    See also

    bomModuleDepsChecked

  69. final def bomModuleDepsChecked: Seq[BomModule]

    Same as bomModuleDeps but checked to not contain cycles.

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

    Definition Classes
    JavaModule
  70. def bspBuildTarget: BspBuildTarget

    Use to fill most fields of BuildTarget.

    Use to fill most fields of BuildTarget.

    Definition Classes
    TestModuleBspModule
  71. 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()
  72. 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()
  73. 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
    AndroidAppModuleJavaModule
    Annotations
    @internal()
  74. def bspCompiledClassesAndSemanticDbFiles: T[UnresolvedPath]
    Definition Classes
    SemanticDbJavaModule
  75. def bspDisplayName: String
    Definition Classes
    BspModule
  76. def bspDisplayName0: String
    Definition Classes
    BspModule
  77. def bspJvmBuildTargetTask: define.Task[JvmBuildTarget]
    Definition Classes
    JavaModule
    Annotations
    @internal()
  78. 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()
  79. 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
  80. 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()
  81. 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()
  82. def cachedTarget[T](t: => T)(implicit c: Enclosing): T
    Attributes
    protected[this]
    Definition Classes
    Cacher → Cacher
  83. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  84. def compile: T[CompilationResult]

    Compiles all the sources to JVM class files.

    Compiles all the sources to JVM class files.

    Definition Classes
    KotlinModuleJavaModuleSemanticDbJavaModule
  85. def compileClasspath: T[Agg[api.PathRef]]

    Replaces AAR files in classpath with their extracted JARs.

    Replaces AAR files in classpath with their extracted JARs.

    Definition Classes
    AndroidAppModuleJavaModuleSemanticDbJavaModule
  86. 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
  87. def compileModuleDeps: Seq[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
  88. final def compileModuleDepsChecked: Seq[JavaModule]

    Same as compileModuleDeps but checked to not contain cycles.

    Same as compileModuleDeps but checked to not contain cycles.

    Definition Classes
    JavaModule
  89. 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
  90. def compiledClassesAndSemanticDbFiles: T[api.PathRef]
    Definition Classes
    SemanticDbJavaModule
  91. def composePreviewArgs: T[api.PathRef]

    Generates the json with the cli arguments for compose-preview-renderer as in https://android.googlesource.com/platform/tools/base/+/61923408e5f7dc20f0840844597f9dde17453a0f/preview/screenshot/screenshot-test-gradle-plugin/src/main/java/com/android/compose/screenshot/tasks/PreviewScreenshotRenderTask.kt#157

  92. def composePreviewRenderer: T[Agg[api.PathRef]]

    The compose-preview-renderer jar executable that generates the screenshots.

    The compose-preview-renderer jar executable that generates the screenshots. For more information see https://developer.android.com/studio/preview/compose-screenshot-testing

  93. def composePreviewRendererVersion: String
  94. 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
  95. def coursierDependency: Dependency

    The coursier.Dependency to use to refer to this module

    The coursier.Dependency to use to refer to this module

    Definition Classes
    JavaModule
  96. def coursierProject: define.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.

    Definition Classes
    JavaModule
  97. def createAndroidVirtualDevice(): Command[String]

    Creates the android virtual device identified in virtualDeviceIdentifier

    Creates the android virtual device identified in virtualDeviceIdentifier

    Definition Classes
    AndroidAppModule
  98. val debugKeyAlias: String
    Attributes
    protected
    Definition Classes
    AndroidAppModule
  99. val debugKeyPass: String
    Attributes
    protected
    Definition Classes
    AndroidAppModule
  100. val debugKeyStorePass: String
    Attributes
    protected
    Definition Classes
    AndroidAppModule
  101. 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
    TestModuleTaskModule
  102. def defaultResolver: define.Task[Resolver]
    Definition Classes
    CoursierModule
  103. def deleteAndroidVirtualDevice: T[CommandResult]

    Deletes the android device

    Deletes the android device

    Definition Classes
    AndroidAppModule
  104. def depManagement: T[Agg[scalalib.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() ++ Agg(
      ivy"com.lihaoyi::os-lib:0.11.3",
      ivy"com.lihaoyi::cask:0.9.5".exclude("org.slf4j", "slf4j-api")
    )
    Definition Classes
    JavaModule
  105. def discoveredTestClasses: T[Seq[String]]

    Overridden since Junit5 has its own discovery mechanism.

    Overridden since Junit5 has its own discovery mechanism.

    This is basically a re-implementation of sbt's plugin for Junit5 test discovery mechanism. See https://github.com/sbt/sbt-jupiter-interface/blob/468d4f31f1f6ce8529fff8a8804dd733974c7686/src/plugin/src/main/scala/com/github/sbt/junit/jupiter/sbt/JupiterPlugin.scala#L97C15-L118 for details.

    Note that we access the test discovery via reflection, to avoid mill itself having a dependency on Junit5. Hence, if you remove the sbt-jupiter-interface dependency from ivyDeps, make sure to also override this method.

    Definition Classes
    AndroidAppKotlinScreenshotTestsJunit5TestModule
  106. def docJar: T[api.PathRef]

    The documentation jar, containing all the Dokka HTML files, for publishing to Maven Central.

    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.

    Definition Classes
    KotlinModuleJavaModule
  107. 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
  108. 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

  109. 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

  110. def dokkaAnalysisPlatform: String
    Attributes
    protected
    Definition Classes
    KotlinModule
  111. def dokkaOptions: T[Seq[String]]

    Additional options to be used by the Dokka tool.

    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.

    Definition Classes
    KotlinModule
  112. def dokkaSourceSetDisplayName: String
    Attributes
    protected
    Definition Classes
    KotlinModule
  113. def dokkaVersion: T[String]

    Dokka version.

    Dokka version.

    Definition Classes
    KotlinModule
  114. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  115. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  116. final def extractAarFiles(aarFiles: Seq[Path], taskDest: Path): Seq[UnpackedDep]
    Definition Classes
    AndroidAppModule
  117. def finalMainClass: T[String]
    Definition Classes
    JavaModuleRunModule
  118. def finalMainClassOpt: T[Either[String, String]]
    Definition Classes
    JavaModuleAssemblyModuleRunModule
  119. 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
    AndroidAppKotlinScreenshotTestsJavaModuleAssemblyModuleRunModule
  120. def forkCmdArgs: define.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

    Definition Classes
    AssemblyModule
  121. 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
  122. def forkShellArgs: define.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

    Definition Classes
    AssemblyModule
  123. def forkWorkingDir: T[Path]
    Definition Classes
    JavaModuleRunModule
  124. def generatePreviews: T[Agg[api.PathRef]]

    Invokes the preview renderer similar to https://android.googlesource.com/platform/tools/base/+/61923408e5f7dc20f0840844597f9dde17453a0f/preview/screenshot/screenshot-test-gradle-plugin/src/main/java/com/android/compose/screenshot/tasks/PreviewRenderWorkAction.kt

  125. def generatedSources: T[Seq[api.PathRef]]

    Combines standard Java source directories with additional sources generated by the Android resource generation step.

    Combines standard Java source directories with additional sources generated by the Android resource generation step.

    Definition Classes
    AndroidAppKotlinScreenshotTestsAndroidAppModuleJavaModule
  126. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  127. def getTestEnvironmentVars(args: String*): define.Command[(String, String, String, Seq[String])]
    Definition Classes
    TestModule
  128. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  129. def ideaCompileOutput: T[PathRef]
    Definition Classes
    GenIdeaModule
  130. def ideaConfigFiles(ideaConfigVersion: Int): define.Task[Seq[IdeaConfigFile]]

    Contribute components to idea config files.

    Contribute components to idea config files.

    Definition Classes
    GenIdeaModule
  131. 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
  132. def intellijModulePath: Path
    Definition Classes
    GenIdeaModule
  133. def internalDependenciesRepository: define.Task[Repository]

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

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

    Definition Classes
    JavaModule
  134. def internalRepositories: define.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.

    Definition Classes
    JavaModuleCoursierModule
  135. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  136. def ivyDeps: T[Agg[scalalib.Dep]]
    Definition Classes
    Junit5JavaModuleBase
  137. 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
  138. 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
  139. def javacOptions: T[Seq[String]]

    Options to pass to the java compiler

    Options to pass to the java compiler

    Definition Classes
    JavaModuleSemanticDbJavaModule
  140. 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
  141. def kotlinApiVersion: T[String]

    The compiler API version.

    The compiler API version. Default is not set.

    Definition Classes
    KotlinModule
  142. def kotlinCompileTask(extraKotlinArgs: Seq[String] = Seq()): define.Task[CompilationResult]

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

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

    Attributes
    protected
    Definition Classes
    KotlinModule
  143. def kotlinCompilerClasspath: T[Seq[api.PathRef]]

    The Java classpath resembling the Kotlin compiler.

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

    Definition Classes
    KotlinModule
  144. def kotlinCompilerIvyDeps: T[Agg[Dep]]

    The Ivy/Coursier dependencies resembling the Kotlin compiler.

    The Ivy/Coursier dependencies resembling the Kotlin compiler. Default is derived from kotlinCompilerVersion.

    Definition Classes
    KotlinModule
  145. def kotlinCompilerVersion: T[String]

    The version of the Kotlin compiler to be used.

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

    Definition Classes
    KotlinModule
  146. def kotlinExplicitApi: T[Boolean]

    Flag to use explicit API check in the compiler.

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

    Definition Classes
    KotlinModule
  147. def kotlinLanguageVersion: T[String]

    The compiler language version.

    The compiler language version. Default is not set.

    Definition Classes
    KotlinModule
  148. final def kotlinVersion: T[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).

    Definition Classes
    AndroidAppKotlinScreenshotTestsKotlinModule
  149. def kotlinWorkerRef: ModuleRef[KotlinWorkerModule]
    Attributes
    protected
    Definition Classes
    KotlinModule
  150. def kotlinWorkerTask: define.Task[KotlinWorker]
    Definition Classes
    KotlinModule
  151. def kotlincHelp(args: String*): define.Command[Unit]

    Runs the Kotlin compiler with the -help argument to show you the built-in cmdline 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.

    Definition Classes
    KotlinModule
  152. def kotlincOptions: define.Target[Seq[String]]

    Additional Kotlin compiler options to be used by compile.

    Additional Kotlin compiler options to be used by compile.

    Definition Classes
    AndroidAppKotlinScreenshotTestsAndroidAppKotlinModuleKotlinModule
  153. def launcher: T[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
    JavaModuleRunModule
  154. final def layoutLibFrameworkRes: T[Agg[api.PathRef]]
  155. final def layoutLibRenderer: T[Agg[api.PathRef]]
  156. final def layoutLibRuntime: T[Agg[api.PathRef]]
  157. final def layoutLibRuntimePath: T[api.PathRef]
  158. def layoutLibVersion: String
  159. 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
    JavaModuleAssemblyModule
  160. 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
  161. 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
  162. 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
  163. def mandatoryIvyDeps: T[Agg[Dep]]

    The dependencies of this module.

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

    Definition Classes
    AndroidAppKotlinScreenshotTestsKotlinModuleJavaModule
  164. 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
  165. 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
    JavaModuleAssemblyModule
  166. def manifestMergerClasspath: T[Agg[api.PathRef]]

    Classpath for the manifest merger run.

    Classpath for the manifest merger run.

    Definition Classes
    AndroidAppModule
  167. def mapDependencies: Task[(Dependency) => Dependency]

    Map dependencies before resolving them.

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

    Definition Classes
    AndroidAppKotlinScreenshotTestsCoursierModule
  168. implicit def millModuleBasePath: BasePath
    Definition Classes
    Module
  169. def millModuleDirectChildren: Seq[define.Module]
    Definition Classes
    Module
  170. implicit def millModuleExternal: External
    Definition Classes
    Module
  171. implicit def millModuleSegments: Segments
    Definition Classes
    Module
  172. implicit def millModuleShared: Foreign
    Definition Classes
    Module
  173. def millOuterCtx: Ctx
    Definition Classes
    BaseClass
  174. def millSourcePath: Path
    Definition Classes
    Module
  175. def moduleDeps: Seq[JavaModule]

    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
    AndroidAppKotlinScreenshotTestsJavaModule
    See also

    moduleDepschecked

  176. final def moduleDepsChecked: Seq[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
  177. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  178. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  179. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  180. 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
  181. def prepareOffline(all: Flag): define.Command[Unit]

    all

    If true fetches also source dependencies

    Definition Classes
    JavaModuleOfflineSupportModule
  182. 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
    JavaModuleAssemblyModule
  183. def printDepsTree(inverse: Boolean, additionalDeps: define.Task[Agg[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
  184. def processedDependencyManagement(deps: Seq[Dependency]): Seq[(Key, Values)]

    Data from depManagement, converted to a type ready to be passed to coursier for dependency resolution

    Data from depManagement, converted to a type ready to be passed to coursier for dependency resolution

    Attributes
    protected
    Definition Classes
    JavaModule
  185. def recursiveModuleDeps: Seq[JavaModule]

    The direct and indirect dependencies of this module

    The direct and indirect dependencies of this module

    Definition Classes
    JavaModule
  186. def recursiveRunModuleDeps: Seq[JavaModule]

    The direct and indirect runtime module dependencies of this module

    The direct and indirect runtime module dependencies of this module

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

    The repositories used to resolved dependencies with resolveDeps().

    The repositories used to resolved dependencies with resolveDeps().

    Definition Classes
    AndroidAppModuleCoursierModule
  188. 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
  189. 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.

    Definition Classes
    AndroidAppKotlinScreenshotTestsCoursierModule
  190. def resolveDeps(deps: define.Task[Agg[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
  191. def resolvePublishDependency: define.Task[(scalalib.Dep) => Dependency]
    Definition Classes
    JavaModule
  192. def resolvedIvyDeps: T[Agg[api.PathRef]]

    Resolved dependencies

    Resolved dependencies

    Definition Classes
    JavaModule
  193. def resolvedRunIvyDeps: T[Agg[api.PathRef]]
    Definition Classes
    JavaModule
  194. def resolvedSemanticDbJavaPluginIvyDeps: T[Agg[api.PathRef]]
    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  195. def resources: T[Seq[api.PathRef]]

    Combines module resources with those unpacked from AARs.

    Combines module resources with those unpacked from AARs.

    Definition Classes
    AndroidAppModuleJavaModuleJavaModuleBase
  196. 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
  197. 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
  198. 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
  199. def runBackgroundRestartDelayMillis: T[Int]
    Definition Classes
    RunModule
  200. def runBackgroundTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
    Definition Classes
    RunModule
  201. 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
    AndroidAppKotlinScreenshotTestsJavaModuleRunModule
  202. 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
  203. 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
  204. 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
  205. def runLocalTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
    Definition Classes
    RunModule
  206. 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
  207. 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
  208. 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
  209. def runModuleDeps: Seq[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
  210. final def runModuleDepsChecked: Seq[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
  211. 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
  212. def runner: define.Task[Runner]
    Definition Classes
    RunModule
  213. def runningEmulator: T[String]

    Returns the emulator identifier for created from startAndroidEmulator by iterating the adb device list

    Returns the emulator identifier for created from startAndroidEmulator by iterating the adb device list

    Definition Classes
    AndroidAppModule
  214. def sdkInstallSystemImage(): Command[String]

    Installs the user specified system image for the emulator using sdkmanager .

    Installs the user specified system image for the emulator using sdkmanager . E.g. "system-images;android-35;google_apis_playstore;x86_64"

    Definition Classes
    AndroidAppModule
  215. def semanticDbData: T[api.PathRef]
    Definition Classes
    SemanticDbJavaModule
  216. def semanticDbEnablePluginScalacOptions: T[Seq[String]]

    Scalac options to activate the compiler plugins.

    Scalac options to activate the compiler plugins.

    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  217. def semanticDbJavaVersion: T[String]
    Definition Classes
    SemanticDbJavaModule
  218. def semanticDbPluginClasspath: T[Agg[api.PathRef]]
    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  219. def semanticDbPluginIvyDeps: T[Agg[scalalib.Dep]]
    Attributes
    protected
    Definition Classes
    SemanticDbJavaModule
  220. def semanticDbScalaVersion: T[String]
    Definition Classes
    SemanticDbJavaModule
  221. def semanticDbVersion: T[String]
    Definition Classes
    SemanticDbJavaModule
  222. 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
  223. def skipIdea: Boolean

    Skip Idea project file generation.

    Skip Idea project file generation.

    Definition Classes
    GenIdeaModule
  224. 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
  225. 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
    AndroidAppKotlinScreenshotTestsAndroidAppKotlinModuleAndroidAppModuleJavaModule
  226. def startAndroidEmulator(): Command[String]

    Starts the android emulator and waits until it is booted

    Starts the android emulator and waits until it is booted

    returns

    The log line that indicates the emulator is ready

    Definition Classes
    AndroidAppModule
  227. def stopAndroidEmulator: T[String]

    Stops the android emulator

    Stops the android emulator

    Definition Classes
    AndroidAppModule
  228. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  229. def test(args: String*): define.Command[(String, Seq[TestResult])]

    Discovers and runs the module's tests in a subprocess, reporting the results to the console.

    Discovers and runs the module's tests in a subprocess, reporting the results to the console.

    Definition Classes
    TestModule
    See also

    testCached

  230. def testCached: T[(String, Seq[TestResult])]

    Discovers and runs the module's tests in a subprocess, reporting the results to the console.

    Discovers and runs the module's tests in a subprocess, reporting the results to the console. If no input has changed since the last run, no test were executed.

    Definition Classes
    TestModule
    See also

    test()

  231. def testCachedArgs: T[Seq[String]]

    Args to be used by testCached.

    Args to be used by testCached.

    Definition Classes
    TestModule
  232. def testClasspath: T[Seq[api.PathRef]]

    The classpath containing the tests.

    The classpath containing the tests. This is most likely the output of the compilation target. By default, this uses the result of localRunClasspath, which is most likely the result of a local compilation.

    Definition Classes
    TestModule
  233. def testForkGrouping: T[Seq[Seq[String]]]

    How the test classes in this module will be split into multiple JVM processes and run in parallel during testing.

    How the test classes in this module will be split into multiple JVM processes and run in parallel during testing. Defaults to all of them running in one process sequentially, but can be overridden to split them into separate groups that run in parallel.

    Definition Classes
    TestModule
  234. def testFramework: T[String]

    The test framework to use.

    The test framework to use.

    For convenience, you can also mix-in one of these predefined traits: - TestModule.Junit4 - TestModule.Junit5 - TestModule.Munit - TestModule.ScalaTest - TestModule.Specs2 - TestModule.TestNg - TestModule.Utest - TestModule.Weaver - TestModule.ZioTest

    Definition Classes
    Junit5TestModule
  235. def testLocal(args: String*): define.Command[(String, Seq[TestResult])]

    Discovers and runs the module's tests in-process in an isolated classloader, reporting the results to the console

    Discovers and runs the module's tests in-process in an isolated classloader, reporting the results to the console

    Definition Classes
    TestModule
  236. def testOnly(args: String*): define.Command[(String, Seq[TestResult])]

    Discovers and runs the module's tests in a subprocess, reporting the results to the console.

    Discovers and runs the module's tests in a subprocess, reporting the results to the console. Arguments before "--" will be used as wildcard selector to select test classes, arguments after "--" will be passed as regular arguments. testOnly *foo foobar bar* -- arguments will test only classes with name (includes package name) 1. end with "foo", 2. exactly "foobar", 3. start with "bar", with "arguments" as arguments passing to test framework.

    Definition Classes
    TestModule
  237. def testReportXml: T[Option[String]]

    Sets the file name for the generated JUnit-compatible test report.

    Sets the file name for the generated JUnit-compatible test report. If None is set, no file will be generated.

    Definition Classes
    TestModule
  238. def testSandboxWorkingDir: T[Boolean]

    Whether to use the test task destination folder as the working directory when running tests.

    Whether to use the test task destination folder as the working directory when running tests. true means test subprocess run in the .dest/sandbox folder of the test task, providing better isolation and encouragement of best practices (e.g. not reading/writing stuff randomly from the project source tree). false means the test subprocess runs in the project root folder, providing weaker isolation.

    Definition Classes
    TestModule
  239. def testTask(args: define.Task[Seq[String]], globSelectors: define.Task[Seq[String]]): define.Task[(String, Seq[TestResult])]

    The actual task shared by test-tasks that runs test in a forked JVM.

    The actual task shared by test-tasks that runs test in a forked JVM.

    Attributes
    protected
    Definition Classes
    TestModule
  240. def testUseArgsFile: T[Boolean]

    Controls whether the TestRunner should receive its arguments via an args-file instead of a long parameter list.

    Controls whether the TestRunner should receive its arguments via an args-file instead of a long parameter list. Defaults to what runUseArgsFile return.

    Definition Classes
    TestModule
  241. def toString(): String
    Definition Classes
    Module → AnyRef → Any
  242. def transitiveCompileClasspath: T[Agg[api.PathRef]]

    The transitive version of compileClasspath

    The transitive version of compileClasspath

    Definition Classes
    JavaModule
  243. def transitiveCoursierProjects: define.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

    Definition Classes
    JavaModule
  244. def transitiveJars: T[Seq[api.PathRef]]

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

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

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

    The transitive version of localClasspath

    The transitive version of localClasspath

    Definition Classes
    JavaModule
  246. def transitiveModuleCompileModuleDeps: Seq[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
  247. def transitiveModuleDeps: Seq[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
  248. def transitiveModuleRunModuleDeps: Seq[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
  249. def transitiveRunModuleDeps: Seq[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
  250. def uiToolingVersion: String
  251. def unmanagedClasspath: T[Agg[api.PathRef]]

    Adds the Android SDK JAR file to the classpath during the compilation process.

    Adds the Android SDK JAR file to the classpath during the compilation process.

    Definition Classes
    AndroidAppModuleJavaModule
  252. def upstreamAssembly2: T[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
    JavaModuleAssemblyModule
  253. 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
    JavaModuleAssemblyModule
  254. 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
  255. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  256. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  257. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  258. def when(cond: Boolean)(args: String*): Seq[String]
    Attributes
    protected
    Definition Classes
    KotlinModule
  259. 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
  260. def zincIncrementalCompilation: T[Boolean]
    Definition Classes
    JavaModuleSemanticDbJavaModule
  261. 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
  262. def zincWorker: ModuleRef[scalalib.ZincWorkerModule]
  263. def zincWorkerRef: ModuleRef[scalalib.ZincWorkerModule]
    Attributes
    protected
    Definition Classes
    KotlinModule

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 processDependency(overrideVersions: Boolean = false): define.Task[(Dependency) => Dependency]

    Returns a function adding BOM and dependency management details of this module to a coursier.core.Dependency

    Returns a function adding BOM and dependency management details of this module to a coursier.core.Dependency

    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.5) Unused by Mill

  5. def processedIvyDeps: define.Task[Agg[BoundDep]]

    The Ivy dependencies of this module, with Bill of Material (BOM) and dependency management details added to them.

    The Ivy dependencies of this module, with Bill of Material (BOM) and dependency management details added to them. This should be used when propagating the dependencies transitively to other modules.

    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.5) Unused by Mill, use allIvyDeps instead

  6. 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

  7. def resolveDeps(deps: define.Task[Agg[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

  8. def transitiveCompileIvyDeps: T[Agg[BoundDep]]

    The compile-only transitive ivy dependencies of this module and all its upstream compile-only modules.

    The compile-only transitive ivy dependencies of this module and all its upstream compile-only modules.

    This isn't used by Mill anymore. Instead of this, consider using either: * coursierDependency().withConfiguration(Configuration.provided), which will pull all this module's compile-only dependencies transitively * compileIvyDeps, which contains the full list of direct (external) compile-only dependencies of this module

    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.5) Unused by Mill, use coursierDependency().withConfiguration(Configuration.provided) or compileIvyDeps instead

  9. def transitiveIvyDeps: T[Agg[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.

    This isn't used by Mill anymore. Instead of this, consider using either: * coursierDependency, which will pull all this module's dependencies transitively * allIvyDeps, which contains the full list of direct (external) dependencies of this module

    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.5) Unused by Mill, use coursierDependency or allIvyDeps instead

  10. def transitiveRunIvyDeps: T[Agg[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.

    This isn't used by Mill anymore. Instead of this, consider using either: * coursierDependency().withConfiguration(Configuration.runtime), which will pull all this module's runtime dependencies transitively * runIvyDeps, which contains the full list of direct (external) runtime dependencies of this module

    Definition Classes
    JavaModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.12.5) Unused by Mill, use coursierDependency().withConfiguration(Configuration.runtime) or runIvyDeps instead

  11. 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
    JavaModuleAssemblyModule
    Annotations
    @deprecated
    Deprecated

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

Inherited from Junit5

Inherited from scalalib.TestModule

Inherited from AndroidAppKotlinModule

Inherited from KotlinModule

Inherited from AndroidAppModule

Inherited from JavaModule

Inherited from AssemblyModule

Inherited from SemanticDbJavaModule

Inherited from OfflineSupportModule

Inherited from CoursierModule

Inherited from GenIdeaModule

Inherited from 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