forked from fpinkotlin/fpinkotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (45 loc) · 1.33 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
kotlin("jvm") version "1.3.21"
kotlin("kapt") version "1.3.21"
}
val test by tasks.getting(Test::class) {
useJUnitPlatform { }
}
val arrowVersion = "0.10.2"
dependencies {
compile(kotlin("stdlib"))
compile("io.arrow-kt:arrow-core-data:$arrowVersion")
compile("io.arrow-kt:arrow-fx:$arrowVersion")
compile("io.arrow-kt:arrow-mtl:$arrowVersion")
compile("io.arrow-kt:arrow-syntax:$arrowVersion")
compile("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.2")
compile("io.github.microutils:kotlin-logging:1.7.8")
compile("org.awaitility:awaitility:4.0.2")
runtime("org.slf4j:slf4j-simple:1.7.28")
// need this at compile level for chapter 8
compile("io.kotlintest:kotlintest-runner-junit5:3.3.2")
kapt("io.arrow-kt:arrow-meta:$arrowVersion")
}
repositories {
jcenter()
maven("https://dl.bintray.com/kotlin/kotlinx")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.suppressWarnings = true
}
ktlint {
verbose.set(true)
disabledRules.set(
setOf(
"comment-spacing",
"filename",
"import-ordering",
"no-line-break-before-assignment"
)
)
}
kapt {
useBuildCache = false
}