This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle
74 lines (64 loc) · 1.82 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
65
66
67
68
69
70
71
72
73
74
buildscript {
repositories {
google()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "com.google.gms:google-services:4.3.8"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10"
classpath "org.jetbrains.kotlin:kotlin-serialization:1.5.10"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.35'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'io.gitlab.arturbosch.detekt' version "1.17.1"
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
apply {
plugin("io.gitlab.arturbosch.detekt")
}
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.17.1"
}
detekt {
failFast = true
buildUponDefaultConfig = true
autoCorrect = true
config = rootProject.files("config/detekt/detekt.yml") // point to your custom config defining rules to run, overwriting default behavior
reports {
html {
enabled = true
destination = file("build/reports/detekt.html")
}
}
}
afterEvaluate { project ->
if (project.hasProperty('android')) {
android {
compileSdkVersion 30
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
}
}
}
}
}