-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
56 lines (48 loc) · 1.52 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
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navVersion"
classpath "com.github.triplet.gradle:play-publisher:$gppVersion"
classpath "com.github.breadmoirai:github-release:$githubReleasePluginVersion"
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:$aboutLibrariesVersion"
}
}
plugins {
id "base"
id "io.gitlab.arturbosch.detekt" version "1.18.1"
}
allprojects {
apply plugin: "io.gitlab.arturbosch.detekt"
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
project.ext {
kotlinFlags = [
"-opt-in=kotlin.ExperimentalStdlibApi",
"-opt-in=kotlin.time.ExperimentalTime",
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-opt-in=kotlinx.coroutines.FlowPreview",
]
}
clean {
delete rootProject.buildDir
}
detekt {
failFast = true
buildUponDefaultConfig = true
parallel = true
autoCorrect = true
config = rootProject.files("config/detekt/detekt.yml")
}
tasks.detekt.jvmTarget = "1.8"