-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (46 loc) · 1.43 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
plugins {
id "com.android.library" version "3.4.2" apply false
id "com.android.application" version "3.4.2" apply false
id "org.jetbrains.kotlin.android" version "1.3.41" apply false
id "org.jetbrains.kotlin.kapt" version "1.3.41" apply false
id "org.jetbrains.kotlin.android.extensions" version "1.3.41" apply false
id "com.github.ben-manes.versions" version "0.21.0"
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC16"
}
ext.buildConfig = [
versionName: "1.0",
versionCode: 1,
dbVersion : 1
]
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://dl.bintray.com/sch/maven" }
}
apply from: "$rootDir/gradle/common.gradle"
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-Xnew-inference"]
if (name.contains("Release")) {
allWarningsAsErrors = true
freeCompilerArgs += ["-Xno-call-assertions", "-Xno-param-assertions", "-Xno-receiver-assertions"]
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
detekt {
buildUponDefaultConfig = true
config = files("detekt.yml")
input = files(rootDir)
filters ".*/build/.*"
}
apply from: "gradle/versions.gradle"