-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
48 lines (36 loc) · 1.2 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.10"
}
buildscript {
extra["kotlinVersion"] = "1.3.21"
extra["assertjVersion"] = "3.12.0"
extra["junitVersion"] = "5.4.0"
extra["mockitoVersion"] = "2.24.5"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${extra["kotlinVersion"]}")
}
}
group = "de.roamingthings"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
compile(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter-api:${extra["junitVersion"]}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${extra["junitVersion"]}")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:${extra["junitVersion"]}")
testCompile("org.assertj:assertj-core:${extra["assertjVersion"]}")
testCompile("org.mockito:mockito-core:${extra["mockitoVersion"]}")
testCompile("org.mockito:mockito-junit-jupiter:${extra["mockitoVersion"]}")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}