-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle.kts
87 lines (76 loc) · 2.47 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.4.2")
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}")
classpath("com.google.protobuf:protobuf-gradle-plugin:${Versions.GRPC.PROTOBUF}")
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version Versions.KTLINT apply false
kotlin("kapt") version Versions.KOTLIN apply false
id("com.google.protobuf") version Versions.GRPC.PROTOBUF apply false
id("org.jetbrains.kotlin.android") version Versions.KOTLIN apply false
id("nl.neotech.plugin.rootcoverage") version Versions.ROOT_COVERAGE
}
subprojects {
apply {
plugin("org.jlleitschuh.gradle.ktlint")
}
repositories {
google()
mavenCentral()
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory.asFile)
}
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
}
rootCoverage {
generateCsv = false
generateHtml = true
generateXml = true
excludes =
listOf(
"**/config/**",
"**/Dagger*",
"**/hilt_aggregated_deps/**",
"**/Hilt*",
"**/*_Hilt*",
"**/*ComponentTreeDeps",
"**/codegen/**",
"**/presentation/**",
"**/generated/**",
"**/*_Impl*",
"**/ResearchApplication*",
"**/*MainActivity*",
"**/com/msc/**",
"**/com/sec/healthresearch/backend/grpc/**",
"**/ISACallbackStubAdapter.class",
"**/ResearchAppDatabase*",
"**/SHealthDataSource*",
)
executeAndroidTests = false
executeUnitTests = true
includeAndroidTestResults = false
includeUnitTestResults = true
includeNoLocationClasses = false
}