-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
44 lines (40 loc) · 1.25 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
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:${Versions.ANDROID_GRADLE_PLUGIN}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.KOTLIN}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Versions.HILT}")
classpath("com.google.gms:google-services:${Versions.GOOGLE_SERVICES}")
classpath("com.google.firebase:firebase-appdistribution-gradle:${Versions.APP_DISTRIBUTION}")
}
}
plugins {
id("io.gitlab.arturbosch.detekt").version(Versions.DETEKT)
}
subprojects {
tasks {
withType<Detekt> { jvmTarget = JavaVersion.VERSION_1_8.toString() }
}
tasks.withType<DetektCreateBaselineTask>().configureEach {
jvmTarget = "1.8"
}
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
parallel = true
config = files("$rootDir/quality/detekt-config.yml")
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:${Versions.DETEKT}")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}