-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
67 lines (57 loc) · 1.9 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
id("org.sonarqube") version "3.3"
id("io.gitlab.arturbosch.detekt") version "1.18.0-RC2"
id("com.adarshr.test-logger") version "3.0.0"
}
group = "io.overfullstack"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
}
val arrowSnapshotVersion = "latest.integration"
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:+")
implementation("io.arrow-kt:arrow-core:$arrowSnapshotVersion")
implementation("io.arrow-kt:arrow-fx:$arrowSnapshotVersion")
implementation("io.arrow-kt:arrow-fx-coroutines:$arrowSnapshotVersion")
implementation("io.github.microutils:kotlin-logging:+")
// All other dependencies for log4j2 are taken care by kotlin-logging, so you don't need the below
// implementation("org.slf4j:slf4j-api:+")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j18-impl:+") // slf4j18 - 18 is required for newer version.
testImplementation(platform("org.junit:junit-bom:5.8.0-M1"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_16.toString()
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
testlogger {
setTheme("mocha")
showExceptions = true
showStackTraces = true
showFullStackTraces = true
showCauses = true
slowThreshold = 2000
showSummary = true
showSimpleNames = true
showPassed = true
showSkipped = true
showFailed = true
showStandardStreams = true
showPassedStandardStreams = true
showSkippedStandardStreams = true
showFailedStandardStreams = true
}
detekt {
baseline = file("${rootProject.projectDir}/config/baseline.xml")
config = files("config/detekt/detekt.yml")
buildUponDefaultConfig = true
}