-
Notifications
You must be signed in to change notification settings - Fork 437
/
build.gradle.kts
49 lines (45 loc) · 1.11 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
}
apply(plugin = "io.kotest.multiplatform")
apply(from = property("TEST_COVERAGE"))
apply(from = property("ANIMALSNIFFER_MPP"))
kotlin {
sourceSets {
commonMain {
dependencies {
api(projects.arrowContinuations)
api(projects.arrowAnnotations)
api(libs.kotlin.stdlibCommon)
}
}
commonTest {
dependencies {
implementation(projects.arrowCoreTest)
implementation(projects.arrowFxCoroutines)
}
}
jvmMain {
dependencies {
implementation(libs.kotlin.stdlibJDK8)
}
}
jvmTest {
dependencies {
runtimeOnly(libs.kotest.runnerJUnit5)
}
}
jsMain {
dependencies {
implementation(libs.kotlin.stdlibJS)
}
}
}
}
// enables context receivers for Jvm Tests
tasks.named<KotlinCompile>("compileTestKotlinJvm") {
kotlinOptions.freeCompilerArgs += "-Xcontext-receivers"
}