-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
36 lines (27 loc) · 987 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.7.21"
// Apply the application plugin to add support for building a CLI application.
application
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
val kotestVersion = "5.5.4"
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions { jvmTarget = "17" }
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}