-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
58 lines (49 loc) · 1.54 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
repositories {
google()
mavenCentral()
}
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle.kts files
classpath("com.android.tools.build:gradle:${Versions.ANDROID_BUILD}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.KOTLIN}")
classpath("de.mannodermaus.gradle.plugins:android-junit5:${Versions.JUnit.PLUGIN}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Versions.Hilt.DAGGER}")
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${Versions.DETEKT}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${Versions.DOKKA}")
classpath("com.google.gms:google-services:${Versions.Google.GMS}")
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version Versions.KTLINT apply false
kotlin("kapt") version Versions.KOTLIN apply false
id("nl.neotech.plugin.rootcoverage") version "1.5.3"
}
subprojects {
apply {
plugin("org.jlleitschuh.gradle.ktlint")
}
repositories {
google()
mavenCentral()
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
val testWithLint by tasks.registering {
group = "verification"
description = "run unit tests with lint check"
dependsOn(
getTasksByName("test", true),
getTasksByName("ktlintCheck", true)
)
}
jacoco {
toolVersion = Versions.JACOCO
}