-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (57 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
69
70
71
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val arrowVersion = "0.8.2"
val spekVersion = "2.0.6"
val mockitoVersion = "2.1.0"
val kluentVersion = "1.49"
plugins {
base
idea
kotlin("jvm") version "1.3.41"
}
repositories {
mavenCentral()
jcenter()
}
allprojects {
group = "katas.twitter"
}
subprojects {
apply(plugin = "kotlin")
repositories {
mavenCentral()
jcenter()
}
dependencies {
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.arrow-kt:arrow-core:$arrowVersion")
// Use the Kotlin test library.
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
testImplementation("org.amshove.kluent:kluent:$kluentVersion")
// Use the Kotlin JUnit integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:$mockitoVersion")
}
tasks {
withType<Test> {
useJUnitPlatform {
includeEngines("spek2")
}
testLogging {
events = TestLogEvent.values().toSet()
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
}
buildscript {
repositories {
mavenCentral()
jcenter()
}
}