-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (35 loc) · 1013 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
41
42
@file:Suppress("PropertyName")
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kluent_version: String by project
val junit_version: String by project
val mockk_version: String by project
val assertk_version: String by project
val assertj_version: String by project
plugins {
kotlin("jvm") version "1.3.70"
idea
eclipse
java
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter:$junit_version")
testImplementation("org.amshove.kluent:kluent:$kluent_version")
testImplementation("io.mockk:mockk:$mockk_version")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:$assertk_version")
testImplementation("org.assertj:assertj-core:$assertj_version")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
// config JVM target to 1.8 for kotlin compilation tasks
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}