-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
64 lines (54 loc) · 1.38 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
57
58
59
60
61
62
63
64
import io.gitlab.arturbosch.detekt.Detekt
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath BuildPlugins.androidGradlePlugin
classpath BuildPlugins.kotlinGradlePlugin
classpath BuildPlugins.navigationSafeArgsPlugin
classpath BuildPlugins.kotlinAllOpenPlugin
}
}
plugins {
id "com.github.ben-manes.versions" version "0.39.0"
id "io.gitlab.arturbosch.detekt" version "1.20.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter()
}
}
subprojects { project ->
apply plugin: 'io.gitlab.arturbosch.detekt'
detekt {
source = files("src/main/java")
autoCorrect = true
config = files("${rootProject.projectDir}/config/detekt/detekt.yml")
}
dependencies {
detektPlugins BuildPlugins.detektFormatting
}
}
tasks.withType(Detekt).configureEach {
reports {
html {
enabled = true
destination = file("$projectDir/build/reports/detekt.html")
}
xml {
enabled = false
}
}
autoCorrect = true
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: GameDealzPlugin