-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
89 lines (79 loc) · 2.87 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
plugins {
kotlin("jvm") version "1.7.20"
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
application
id("io.gitlab.arturbosch.detekt") version "1.21.0"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven("https://jitpack.io")
}
val logBackVersion = "1.4.3"
val arrowVersion = "0.10.4"
val kotestVersion = "4.2.3"
dependencies {
implementation(kotlin("stdlib-jdk8") as String) {
isForce = true
isChanging = true
}
implementation(kotlin("reflect") as String) {
isForce = true
isChanging = true
}
implementation("io.arrow-kt", "arrow-core", arrowVersion)
implementation("io.arrow-kt", "arrow-syntax", arrowVersion)
implementation("io.arrow-kt", "arrow-fx", arrowVersion)
implementation("com.github.mattbdean", "JRAW", "v1.1.0")
implementation("com.uchuhimo", "konf", "0.22.1")
implementation("com.github.rcarz", "jira-client", "master-SNAPSHOT")
implementation("com.github.napstr", "logback-discord-appender", "bda874138e")
implementation("org.slf4j", "slf4j-api", "2.0.3")
implementation("ch.qos.logback", "logback-classic", logBackVersion)
implementation("ch.qos.logback", "logback-core", logBackVersion)
implementation("com.fasterxml.jackson.module", "jackson-module-kotlin", "2.13.+")
testImplementation("io.kotest", "kotest-assertions-core-jvm", kotestVersion)
testImplementation("io.kotest", "kotest-runner-junit5", kotestVersion)
testImplementation("io.kotest", "kotest-assertions-arrow", kotestVersion)
testImplementation("io.mockk", "mockk", "1.13.2")
testImplementation("org.reflections", "reflections", "0.10.2")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
test {
useJUnitPlatform()
maxParallelForks =
(Runtime.getRuntime().availableProcessors() / 2).takeIf { it > 0 } ?: 1 // Run with same number of cores
reports.html.isEnabled = false
reports.junitXml.isEnabled = false
}
}
application {
mainClassName = "io.github.mojira.risa.MainKt"
}
detekt {
failFast = true // fail build on any finding
buildUponDefaultConfig = true // preconfigure defaults
parallel = true
reports {
html {
destination = file("build/reports/detekt.html")
enabled = true // observe findings in your browser with structure and code snippets
}
xml.enabled = false // checkstyle like format mainly for integrations like Jenkins
txt.enabled = false // similar to the console output, contains issue signature to manually edit baseline files
}
}
tasks {
withType<io.gitlab.arturbosch.detekt.Detekt> {
// Target version of the generated JVM bytecode. It is used for type resolution.
this.jvmTarget = "11"
}
}