-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
84 lines (72 loc) · 2.15 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
kotlin("multiplatform") version "1.8.20" apply true
id("io.kotest.multiplatform") version "5.5.4" apply true
id("com.google.devtools.ksp") version "1.8.20-1.0.11"
}
group "org.example"
version "1.0"
repositories {
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
// release candidate avoids a null pointer exception during optics generation
val arrowVersion = "1.2.0-RC"
dependencies {
add("kspCommonMainMetadata", "io.arrow-kt:arrow-optics-ksp-plugin:$arrowVersion")
}
kotlin {
jvm()
js(IR) {
browser()
nodejs()
}
linuxX64()
mingwX64()
iosArm32()
iosArm64()
iosSimulatorArm64()
iosX64()
macosArm64()
macosX64()
tvosArm64()
tvosSimulatorArm64()
tvosX64()
watchosArm32()
watchosArm64()
watchosSimulatorArm64()
watchosX64()
watchosX86()
sourceSets {
commonMain {
dependencies {
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
implementation(kotlin("stdlib-common"))
implementation("io.arrow-kt:arrow-core:$arrowVersion")
implementation("io.arrow-kt:arrow-optics:$arrowVersion")
implementation("io.arrow-kt:arrow-fx-coroutines:$arrowVersion")
implementation("io.arrow-kt:arrow-optics:$arrowVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}
}
val kotestVersion = "5.5.4"
val kotestArrowVersion = "1.3.0"
commonTest {
dependencies {
implementation("io.kotest:kotest-property:$kotestVersion")
implementation("io.kotest:kotest-framework-engine:$kotestVersion")
implementation("io.kotest:kotest-assertions-core:$kotestVersion")
implementation("io.kotest.extensions:kotest-assertions-arrow:$kotestArrowVersion")
implementation("io.kotest.extensions:kotest-property-arrow:$kotestArrowVersion") // optional
implementation("io.kotest.extensions:kotest-property-arrow-optics:$kotestArrowVersion") // optional
}
}
val jvmTest by getting {
dependencies {
implementation("io.kotest:kotest-runner-junit5-jvm:5.3.0")
}
}
val jvmMain by getting
}
}