2020-08-07 13:51:27 +00:00
|
|
|
description = "Extensions for using kotlin-result with kotlinx-coroutines."
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
`maven-publish`
|
|
|
|
kotlin("multiplatform")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
sourceSets {
|
|
|
|
all {
|
|
|
|
languageSettings.apply {
|
2021-10-05 17:05:29 +00:00
|
|
|
optIn("kotlin.contracts.ExperimentalContracts")
|
2020-08-07 13:51:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-28 15:50:44 +00:00
|
|
|
commonMain {
|
2020-08-07 13:51:27 +00:00
|
|
|
dependencies {
|
2023-03-20 01:20:22 +00:00
|
|
|
implementation(libs.kotlin.coroutines.core)
|
2023-01-06 02:21:26 +00:00
|
|
|
api(project(":kotlin-result"))
|
2020-08-07 13:51:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-28 15:50:44 +00:00
|
|
|
commonTest {
|
2020-08-07 13:51:27 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-common"))
|
|
|
|
implementation(kotlin("test-annotations-common"))
|
2023-03-20 01:20:22 +00:00
|
|
|
implementation(libs.kotlin.coroutines.test)
|
2020-08-07 13:51:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-28 15:50:44 +00:00
|
|
|
jvmTest {
|
2020-08-07 13:51:27 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-junit"))
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
2020-11-29 21:34:08 +00:00
|
|
|
|
2023-11-28 15:50:44 +00:00
|
|
|
jsTest {
|
2020-11-29 21:34:08 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-js"))
|
|
|
|
}
|
|
|
|
}
|
2020-08-07 13:51:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-26 15:50:36 +00:00
|
|
|
publishing {
|
|
|
|
publications.withType<MavenPublication> {
|
|
|
|
pom {
|
|
|
|
description.set(project.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|