-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
59 lines (46 loc) · 1.28 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
50
51
52
53
54
55
56
57
58
59
import org.gradle.api.JavaVersion.VERSION_1_8
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
extra["kotlinVersion"] = "1.3.61"
extra["assertjVersion"] = "3.14.0"
extra["junitVersion"] = "5.5.2"
extra["mockitoVersion"] = "3.0.0"
val kotlinVersion: String by extra
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
plugins {
kotlin("jvm") version "1.3.61"
}
group = "de.roamingthings"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
val kotlinVersion: String by extra
val junitVersion: String by extra
val mockitoVersion: String by extra
val assertjVersion: String by extra
dependencies {
compile(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testCompile("org.assertj:assertj-core:$assertjVersion")
testCompile("org.mockito:mockito-core:$mockitoVersion")
testCompile("org.mockito:mockito-junit-jupiter:$mockitoVersion")
}
configure<JavaPluginConvention> {
sourceCompatibility = VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}