-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
50 lines (42 loc) · 1.27 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
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
buildscript {
repositories {
google()
jcenter()
mavenLocal()
maven(url = "https://kotlin.bintray.com/kotlinx")
maven(url = "https://jitpack.io")
maven(url = "https://maven.fabric.io/public")
maven(url = "https://dl.bintray.com/android/android-tools")
maven(url = "https://plugins.gradle.org/m2/")
}
dependencies {
classpath(BuildPlugins.androidGradlePlugin)
classpath(BuildPlugins.kotlinGradlePlugin)
classpath(BuildPlugins.kotlinxSerializiationPlugin)
classpath(BuildPlugins.ktlint)
classpath(BuildPlugins.detekt)
}
}
allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "io.gitlab.arturbosch.detekt")
repositories {
google()
jcenter()
mavenLocal()
maven(url = "https://kotlin.bintray.com/kotlinx")
maven(url = "https://jitpack.io")
}
configure<DetektExtension> {
config = files("$rootDir/detekt.yml")
}
configurations.all {
resolutionStrategy {
force("androidx.constraintlayout:constraintlayout:1.1.3")
}
}
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}