mill.kotlinlib.multiplatform

Members list

Type members

Classlikes

A Kotlin Multiplatform module, with one PlatformModule submodule per target platform, e.g.

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
Supertypes
trait Module
trait ModuleApi
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Self type