-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.gradle
56 lines (52 loc) · 1.68 KB
/
build.gradle
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
buildscript {
apply from: "$rootDir/buildScript/versionManager.gradle"
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$library.kotlin"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$library.detekt"
classpath "com.google.gms:google-services:$library.googleServices"
classpath "com.google.firebase:firebase-crashlytics-gradle:$library.crashlyticsPlugin"
}
}
allprojects {
apply from: "$rootDir/buildScript/versionManager.gradle"
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
subprojects {
apply plugin: "io.gitlab.arturbosch.detekt"
detekt {
toolVersion = library.detekt
config = files("${rootDir}/detekt.yml")
parallel = true
reports {
xml.enabled = false
txt.enabled = false
html {
enabled = true
destination = file("${rootDir}/build/reports/detekt_${project.name}.html")
}
}
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt) {
exclude(".*/resources/.*")
exclude(".*/build/.*")
}
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:$library.detekt"
}
}
apply from: "$rootDir/buildScript/androidLibraryModule.gradle"
apply from: "$rootDir/buildScript/kotlinLibraryModule.gradle"
apply from: "$rootDir/buildScript/projectDependency.gradle"
task clean(type: Delete) {
delete rootProject.buildDir
}