46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
description = "Extensions for using kotlin-result with kotlinx-coroutines."
|
|
|
|
plugins {
|
|
`maven-publish`
|
|
kotlin("multiplatform")
|
|
}
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
all {
|
|
languageSettings.apply {
|
|
useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
|
|
}
|
|
}
|
|
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}")
|
|
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"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications.withType<MavenPublication> {
|
|
pom {
|
|
description.set(project.description)
|
|
}
|
|
}
|
|
}
|