41fff9eb9c
Closes #83
53 lines
1.2 KiB
Plaintext
53 lines
1.2 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")
|
|
}
|
|
}
|
|
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(libs.kotlin.coroutines.core)
|
|
api(project(":kotlin-result"))
|
|
}
|
|
}
|
|
|
|
val commonTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
implementation(kotlin("test-annotations-common"))
|
|
implementation(libs.kotlin.coroutines.test)
|
|
}
|
|
}
|
|
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-junit"))
|
|
implementation(kotlin("test"))
|
|
}
|
|
}
|
|
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications.withType<MavenPublication> {
|
|
pom {
|
|
description.set(project.description)
|
|
}
|
|
}
|
|
}
|