-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
42 lines (37 loc) · 1.06 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
plugins {
id("dagger.hilt.android.plugin") version "2.40.1" apply false
id("androidx.navigation.safeargs") version "2.4.0-rc01" apply false
id("io.gitlab.arturbosch.detekt") version "1.19.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-eap") }
}
}
tasks.register<io.gitlab.arturbosch.detekt.Detekt>("detektAll") {
description = "Runs a custom detekt build."
setSource(projectDir)
config.setFrom(project.file("config/detekt/detekt.yml"))
parallel = true
reports {
html {
required.set(true)
outputLocation.set(file("$rootDir/reports/detekt/detekt.html"))
}
}
include("**/*.kt")
exclude("**/resources/**", "**/build/**")
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
jvmTarget = "11"
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
}
}