-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
62 lines (50 loc) · 1.19 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
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
allprojects {
group = "io.github.hellocuriosity"
version = System.getenv("VERSION") ?: "local"
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlinx.kover")
kotlin {
jvmToolchain(17)
}
}
plugins {
kotlin("jvm") version libs.versions.kotlin.get()
// Quality gate
alias(libs.plugins.kotlinter)
alias(libs.plugins.detekt)
alias(libs.plugins.kover)
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
tasks.test {
useJUnit()
}
tasks.withType<Detekt>().configureEach {
jvmTarget = "17"
reports {
html.required.set(true)
xml.required.set(false)
txt.required.set(false)
sarif.required.set(false)
}
}
tasks.withType<DetektCreateBaselineTask>().configureEach {
jvmTarget = "17"
}
// Kover
dependencies {
kover(project(":forge-core"))
}