-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
63 lines (52 loc) · 1.66 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.6.21'
ext.coroutines_core_version = '1.6.2'
ext.coroutines_android_version = '1.6.2'
ext.coroutines_test_version = '1.6.2'
ext.mockk_version = '1.12.0'
ext.robolectric_version = '4.10.3'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jacoco:org.jacoco.core:0.8.7"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
// Firebase integration
classpath 'com.google.gms:google-services:4.3.5'
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.19.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://maven.tealiumiq.com/android/releases/" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
if (project.name != "mobile") {
apply plugin: "io.gitlab.arturbosch.detekt"
detekt {
toolVersion = "1.19.0"
config = files("$rootDir/detekt.yml")
baseline = file("$projectDir/detekt-baseline.xml")
}
tasks.named("detekt").configure {
reports {
html.required.set(true)
html.outputLocation.set(file("build/reports/detekt.html"))
}
}
}
}