-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
executable file
·103 lines (82 loc) · 2.45 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion = "1.3.50"
val coroutineVersion = "1.3.0"
val logbackVersion = "1.2.3"
val arrowVersion = "0.9.0"
val jUnitVersion = "5.4.2"
val spekVersion = "2.0.6"
val kluentVersion = "1.53"
val easyRandomVersion = "4.0.0"
val mockKVersion = "1.9.3"
plugins {
application
kotlin("jvm") version "1.3.50"
id("io.gitlab.arturbosch.detekt").version("1.0.1")
jacoco
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
group = "id.jasoet.boilerplate"
version = "1.0.0"
application {
mainClassName = "id.jasoet.boilerplate.Application"
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
implementation("io.arrow-kt:arrow-core-data:$arrowVersion")
implementation("io.arrow-kt:arrow-core-extensions:$arrowVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion")
testImplementation("org.amshove.kluent:kluent:$kluentVersion")
testImplementation("io.mockk:mockk:$mockKVersion")
testImplementation("org.jeasy:easy-random-core:$easyRandomVersion")
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
}
jacoco {
toolVersion = "0.8.4"
}
tasks.jacocoTestReport {
group = "Reporting"
reports {
xml.isEnabled = true
html.isEnabled = true
csv.isEnabled = false
}
}
detekt {
version = "1.0.1"
config = files("$rootDir/detekt.yml")
}
tasks.test {
finalizedBy(tasks.detekt, tasks.jacocoTestReport)
useJUnitPlatform {
includeEngines("junit-jupiter","spek2")
}
testLogging {
exceptionFormat = TestExceptionFormat.FULL
events("passed", "failed", "skipped")
}
}
tasks.withType<KotlinCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.3"
languageVersion = "1.3"
allWarningsAsErrors = true
}
}
tasks.wrapper {
gradleVersion = "5.6.1"
}