forked from davidsteinsland/oo_workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (38 loc) · 1.03 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val junitJupiterVersion = "5.4.0"
plugins {
kotlin("jvm") version "1.3.50"
}
buildscript {
dependencies {
classpath("org.junit.platform:junit-platform-gradle-plugin:1.2.0")
}
}
dependencies {
implementation(kotlin("stdlib"))
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_12
targetCompatibility = JavaVersion.VERSION_12
}
tasks.named<KotlinCompile>("compileKotlin") {
kotlinOptions.jvmTarget = "12"
}
tasks.named<KotlinCompile>("compileTestKotlin") {
kotlinOptions.jvmTarget = "12"
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<Wrapper> {
gradleVersion = "5.6.2"
}