-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (43 loc) · 1.44 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
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.0"
id("org.jmailen.kotlinter") version "4.3.0"
}
repositories {
mavenLocal()
mavenCentral()
}
val kotestVersion: String by project
val kotlinCoroutinesVersion: String by project
val mockkVersion: String by project
dependencies {
implementation(kotlin("stdlib"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion")
api("org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:$kotlinCoroutinesVersion")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest:kotest-property:$kotestVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
}
java.sourceCompatibility = JavaVersion.VERSION_17
tasks {
withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs = listOf(
"-Xjsr305=strict",
"-Xcontext-receivers",
)
jvmTarget = JVM_17
}
}
test {
useJUnitPlatform()
testLogging {
events(PASSED, FAILED, SKIPPED)
}
}
}