forked from stefanscheidt/aoc-2021-kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (30 loc) · 869 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
37
38
39
plugins {
kotlin("jvm") version "1.5.31"
id("com.github.ben-manes.versions") version "0.39.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.check {
dependsOn("ktlintCheck")
}
repositories {
mavenCentral()
}
dependencies {
val junitVersion = "5.8.2"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("io.kotest:kotest-assertions-core:5.0.1")
testImplementation(kotlin("script-runtime"))
}