-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
78 lines (66 loc) · 2.18 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.8.22'
ext.coroutines_core_version = '1.8.0'
ext.coroutines_android_version = '1.8.0'
ext.coroutines_test_version = '1.8.0'
ext.mockk_version = '1.13.16'
ext.robolectric_version = '4.14.1'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.1'
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.4.2'
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.19.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://maven.tealiumiq.com/android/releases/" }
}
}
tasks.register('clean', Delete) {
delete rootProject.getLayout().getBuildDirectory()
}
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"))
}
}
}
afterEvaluate {
if (project.extensions.findByName("android") != null) {
android {
kotlinOptions.freeCompilerArgs = ["-Xstring-concat=inline"]
packagingOptions {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
merges += "META-INF/LICENSE.md"
merges += "META-INF/LICENSE-notice.md"
}
}
}
}
}
}