-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
59 lines (51 loc) · 1.31 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
buildscript {
repositories {
google()
mavenCentral()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath(Plugins.kotlin)
classpath(Plugins.gradle)
}
}
plugins {
id(Plugins.ktLint) version Versions.ktLint
id(Plugins.detekt) version (Versions.detekt)
id(Plugins.gradleVersionUpdates) version (Versions.gradleVersionUpdate)
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
subprojects {
apply(plugin = Plugins.ktLint)
ktlint {
debug.set(true)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
outputColorName.set("RED")
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
apply(plugin = Plugins.detekt)
detekt {
parallel = true
config = files("${project.rootDir}/config/detekt/detekt.yml")
}
tasks.withType<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask> {
checkForGradleUpdate = true
outputDir = "build/dependencyUpdates"
reportfileName = "report"
}
}
tasks.register("clean").configure {
delete("build")
}