-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
40 lines (32 loc) · 897 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
40
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.2.61"
}
group = "com.christophsturm"
version = "1.0-SNAPSHOT"
val junit5Version = "5.3.0"
val junitPlatformVersion = "1.3.0"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter-api:$junit5Version")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junit5Version")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Test> {
useJUnitPlatform {
includeEngines("junit-jupiter")
}
testLogging {
events("passed", "skipped", "failed")
}
}