05a1e91298
Adopts the new default project template[1] and removed mpp targets[2]. [1] https://kotlinlang.org/docs/whatsnew1920.html#template-for-configuring-multiplatform-projects [2] https://kotlinlang.org/docs/whatsnew1920.html#change-to-our-target-tiers-policy See: https://kotl.in/native-targets-tiers
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
description = "Extensions for using kotlin-result with kotlinx-coroutines."
|
|
|
|
plugins {
|
|
`maven-publish`
|
|
kotlin("multiplatform")
|
|
}
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
all {
|
|
languageSettings.apply {
|
|
optIn("kotlin.contracts.ExperimentalContracts")
|
|
}
|
|
}
|
|
|
|
commonMain {
|
|
dependencies {
|
|
implementation(libs.kotlin.coroutines.core)
|
|
api(project(":kotlin-result"))
|
|
}
|
|
}
|
|
|
|
commonTest {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
implementation(kotlin("test-annotations-common"))
|
|
implementation(libs.kotlin.coroutines.test)
|
|
}
|
|
}
|
|
|
|
jvmTest {
|
|
dependencies {
|
|
implementation(kotlin("test-junit"))
|
|
implementation(kotlin("test"))
|
|
}
|
|
}
|
|
|
|
jsTest {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications.withType<MavenPublication> {
|
|
pom {
|
|
description.set(project.description)
|
|
}
|
|
}
|
|
}
|