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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
2020-08-28 15:19:39 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}")
|
2020-08-07 13:51:27 +00:00
|
|
|
implementation(project(":kotlin-result"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-common"))
|
|
|
|
implementation(kotlin("test-annotations-common"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val jvmTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-junit"))
|
|
|
|
implementation(kotlin("test"))
|
2021-06-15 18:26:27 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.kotlinCoroutinesTest}")
|
2020-08-07 13:51:27 +00:00
|
|
|
}
|
|
|
|
}
|
2020-11-29 21:34:08 +00:00
|
|
|
|
|
|
|
val jsTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-js"))
|
|
|
|
}
|
|
|
|
}
|
2021-03-25 12:22:53 +00:00
|
|
|
|
|
|
|
val nativeTest by creating {
|
|
|
|
dependsOn(commonTest)
|
|
|
|
}
|
|
|
|
|
|
|
|
val linuxX64Test by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
|
|
|
|
|
|
|
val mingwX64Test by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
|
|
|
|
|
|
|
val macosX64Test by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
|
|
|
|
|
|
|
val iosX64Test by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
|
|
|
|
|
|
|
val iosArm64Test by getting {
|
|
|
|
dependsOn(nativeTest)
|
|
|
|
}
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|