generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
68 lines (58 loc) · 1.78 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
60
61
62
63
64
65
66
67
68
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:${Versions.BUILD_GRADLE_VERSION}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Versions.HILT_VERSION}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.KOTLIN_VERSION}")
classpath("com.google.gms:google-services:${Versions.GOOGLE_SERVICE_VERSION}")
}
}
plugins {
id("io.gitlab.arturbosch.detekt").version(Versions.DETEKT_VERSION)
}
allprojects {
repositories {
google()
maven(url = "https://jitpack.io")
maven(url = "https://repo1.maven.org/maven2/")
mavenCentral()
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
// Target version of the generated JVM bytecode. It is used for type resolution.
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
detekt {
toolVersion = Versions.DETEKT_VERSION
source = files(
"app/src/main/java",
"data/src/main/java",
"domain/src/main/java",
"buildSrc/src/main/java"
)
parallel = false
config = files("detekt-config.yml")
buildUponDefaultConfig = false
disableDefaultRuleSets = false
debug = false
ignoreFailures = false
ignoredBuildTypes = listOf("release")
ignoredFlavors = listOf("production")
reports {
xml {
enabled = true
destination = file("build/reports/detekt.xml")
}
html {
enabled = true
destination = file("build/reports/detekt.html")
}
}
}