forked from NovaForeverSL/Hydrazine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (46 loc) · 844 Bytes
/
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
plugins {
java
kotlin("jvm")
id("io.gitlab.arturbosch.detekt")
}
repositories {
mavenCentral()
}
allprojects {
apply {
plugin("java")
plugin("kotlin")
}
repositories {
mavenCentral()
maven(uri("https://jitpack.io"))
}
}
tasks {
build {
doLast {
copy {
from("client/build/libs/client-${project.property("mod_version")}.jar")
into("build/")
}
copy {
from("server/build/libs/server-${project.property("mod_version")}.jar")
into("build/")
}
}
}
detekt {
config = files("config/detekt/detekt.yml")
buildUponDefaultConfig = true
}
withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
reports {
// Only want .txt and .html
// who the heck even uses .sarif?
html.required.set(true)
txt.required.set(true)
xml.required.set(false)
sarif.required.set(false)
}
}
}