-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
54 lines (48 loc) · 1.16 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
buildscript {
val kotlin_version by extra("1.4.21")
repositories {
google()
jcenter()
uri("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
gradle()
}
}
plugins {
id(Dependencies.DETEKT_PLUGIN).version(Dependencies.DETEKT)
}
dependencies {
detektFormatting()
}
allprojects {
repositories {
google()
jcenter()
maven { url = uri("https://jitpack.io") }
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
tasks {
withType<io.gitlab.arturbosch.detekt.Detekt> {
buildUponDefaultConfig = true
autoCorrect = true
parallel = true
setSource(files(projectDir))
config.setFrom(files("$rootDir/detekt.yml"))
include("**/*.kt")
include("**/*.kts")
exclude("**/build/**")
exclude("**/buildSrc/**")
exclude("**/test/**/*.kt")
reports {
xml.enabled = false
html.enabled = false
txt.enabled = false
}
}
}
apply(plugin = "name.remal.check-dependency-updates")