KotlinMultiplatformModule
A Kotlin Multiplatform module, with one PlatformModule submodule per target platform, e.g.
object foo extends KotlinMultiplatformModule {
def kotlinVersion = "2.2.20"
object jvm extends PlatformModule {
object test extends PlatformTests, TestModule.Junit4
}
object js extends PlatformModule, KotlinJsModule {
object test extends PlatformTests, KotlinTestPackageTests
}
}
Sources are laid out by source set, as in the Kotlin Gradle plugin: foo/src/commonMain/kotlin is shared by all platforms, foo/src/jvmMain/kotlin and foo/src/jsMain/kotlin are platform-specific, and foo/src/Test/kotlin hold the corresponding tests.
Requires Kotlin 2.0+ (the K2 compiler).
Attributes
- Source
- KotlinMultiplatformModule.scala
- Graph
-
- Supertypes
- Self type
Members list
Type members
Classlikes
A submodule compiling the source sets of one platform, e.g. jvmMain and commonMain. The compiler depends on the mixed-in traits, e.g. KotlinJsModule for Kotlin/JS.
A submodule compiling the source sets of one platform, e.g. jvmMain and commonMain. The compiler depends on the mixed-in traits, e.g. KotlinJsModule for Kotlin/JS.
Name it after its Kotlin target, e.g. object jvm reads jvmMain, or override kmpPlatform.
Attributes
- Source
- KotlinMultiplatformModule.scala
- Supertypes
-
trait KotlinModuletrait KotlinModuleApitrait JavaModuletrait JavaModuleApitrait JdkCommandsModuletrait AssemblyModuletrait SemanticDbJavaModuletrait SemanticDbJavaModuleApitrait OfflineSupportModuletrait GenIdeaModuletrait GenIdeaModuleApitrait RunModuletrait RunModuleApitrait DefaultTaskModuletrait JavaModuleBasetrait BspModuletrait BspModuleApitrait WithJvmWorkerModuletrait JavaHomeModuletrait CoursierModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
- Self type
Inherited classlikes
Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill
Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill
Attributes
- Inherited from:
- Module
- Source
- Module.scala
- Supertypes
Value members
Abstract methods
The Kotlin version used by all PlatformModules
Concrete methods
Attributes
Inherited methods
Attributes
- Inherited from:
- BaseClass
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Definition Classes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Definition Classes
- Inherited from:
- Module
- Source
- Module.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Module -> Any
- Inherited from:
- Module
- Source
- Module.scala