-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
78 lines (71 loc) · 1.86 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
plugins {
kotlin("multiplatform") version "1.7.20"
kotlin("plugin.serialization") version "1.9.10"
}
repositories {
mavenCentral()
}
kotlin {
macosX64()
mingwX64()
linuxX64()
mingwX64()
jvm {
withJava()
jvm {
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
}
}
val desktopMain by creating {
dependsOn(commonMain)
}
val linuxX64Main by getting {
dependsOn(desktopMain)
}
val mingwX64Main by getting {
dependsOn(desktopMain)
}
val macosX64Main by getting {
dependsOn(desktopMain)
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
}
}
//tasks {
// test {
// useJUnitPlatform()
//// setExcludes(listOf("**"))
// }
//
// wrapper {
// gradleVersion = "7.3"
// }
//
// dependencies {
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
// implementation("com.github.ajalt.mordant:mordant:2.0.0-beta4")
// testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
// testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
// }
//}
//val compileKotlin: KotlinCompile by tasks
//compileKotlin.kotlinOptions {
// freeCompilerArgs = listOf(
// "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
// "-Xuse-experimental=kotlinx.coroutines.FlowPreview"
// )
//
//}