This repository has been archived by the owner on Feb 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
106 lines (90 loc) · 2.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
plugins {
id("kotest-publishing-conventions")
kotlin("multiplatform").version(Libs.kotlinVersion)
id("io.kotest.multiplatform") version Libs.Kotest.version
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
group = Libs.org
version = Ci.version
kotlin {
jvm {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
js {
browser()
nodejs()
}
// Requires Kotest 5.9 which is not available yet
// wasmJs {
// browser()
// nodejs()
// }
// Native targets
linuxX64()
linuxArm64()
mingwX64()
macosX64()
macosArm64()
tvosX64()
tvosArm64()
tvosSimulatorArm64()
watchosArm32()
watchosArm64()
watchosX64()
watchosSimulatorArm64()
iosX64()
iosArm64()
iosSimulatorArm64()
sourceSets {
val commonMain by getting {
dependencies {
api(Libs.Kotest.property)
implementation(Libs.Kotlinx.kotlintime)
}
}
val commonTest by getting {
dependencies {
implementation(Libs.Kotest.assertionsCore)
implementation(Libs.Kotest.frameworkEngine)
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jvmTest by getting {
dependencies {
implementation(Libs.Kotest.junit5)
}
}
all {
languageSettings.apply {
optIn("kotlin.time.ExperimentalTime")
optIn("kotlin.experimental.ExperimentalTypeInference")
}
}
}
}
tasks.named<Test>("jvmTest") {
useJUnitPlatform()
filter {
isFailOnNoMatchingTests = false
}
testLogging {
showExceptions = true
showStandardStreams = true
events = setOf(
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}