-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
84 lines (67 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.50"
application
id("com.github.johnrengelman.shadow") version "5.1.0"
jacoco
}
application {
mainClassName = "com.github.igorperikov.mightywatcher.Launcher"
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
tasks.withType<Test> {
useJUnitPlatform {
includeEngines("junit-jupiter")
}
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("mighty-watcher")
archiveClassifier.set("")
archiveVersion.set("")
}
}
tasks.withType<JacocoReport> {
reports {
xml.isEnabled = true
html.isEnabled = false
}
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
val kotlinCoroutinesVersion = "1.3.1"
val ktorVersion = "1.2.4"
val jacksonVersion = "2.9.9"
val slf4jVersion = "1.7.28"
val logbackVersion = "1.2.3"
val junit5Version = "5.5.2"
val hamkrestVersion = "1.7.0.0"
val mockitoKotlin2Version = "2.2.0"
val koinVersion = "2.0.1"
val j2htmlVersion = "1.4.0"
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", kotlinCoroutinesVersion)
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core-common", kotlinCoroutinesVersion)
implementation("io.ktor", "ktor-client-apache", ktorVersion)
implementation("io.ktor", "ktor-client-json-jvm", ktorVersion)
implementation("io.ktor", "ktor-client-jackson", ktorVersion)
implementation("org.koin", "koin-core", koinVersion)
implementation("com.fasterxml.jackson.module", "jackson-module-kotlin", jacksonVersion)
implementation("com.fasterxml.jackson.datatype", "jackson-datatype-jsr310", jacksonVersion)
implementation("org.slf4j", "slf4j-api", slf4jVersion)
implementation("ch.qos.logback", "logback-core", logbackVersion)
implementation("ch.qos.logback", "logback-classic", logbackVersion)
implementation("com.j2html", "j2html", j2htmlVersion)
testImplementation("org.junit.jupiter", "junit-jupiter-api", junit5Version)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junit5Version)
testImplementation("com.natpryce", "hamkrest", hamkrestVersion)
testImplementation("com.nhaarman.mockitokotlin2", "mockito-kotlin", mockitoKotlin2Version)
}