-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
41 lines (35 loc) · 1.16 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'versions.gradle'
addRepos(repositories)
dependencies {
classpath buildscriptDeps.dependencyUpdates
classpath buildscriptDeps.gradle
classpath buildscriptDeps.detekt
classpath buildscriptDeps.kotlin
}
}
apply from: rootProject.file('versions.gradle')
apply plugin: "io.gitlab.arturbosch.detekt"
apply from: rootProject.file('scripts/dependency_updates.gradle')
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:$versions.detekt"
}
detekt {
autoCorrect = true
config = files("$rootDir/.detekt/detekt-config.yml")
input = files("app/src", "core/src", "navigation/src", "navigation-debug/src", "reflection/src")
parallel = true
toolVersion = "$versions.detekt"
}
allprojects {
apply from: rootProject.file('versions.gradle')
addRepos(repositories)
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// `./gradlew wrapper --gradle-version=[version]` uses the distribution type all
wrapper {
distributionType = Wrapper.DistributionType.ALL
}