-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
68 lines (63 loc) · 2.01 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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kover)
}
dependencies {
kover(project(":shared"))
}
val autoVersion = project.property(
if (project.hasProperty("AUTO_VERSION")) {
"AUTO_VERSION"
} else {
"LIBRARY_VERSION"
}
) as String
subprojects {
val GROUP: String by project
group = GROUP
version = autoVersion
}
koverReport {
filters {
excludes {
classes(
"**Platform*",
"*.LemonSqueezy$*",
"*.LemonSqueezyKt",
"*.LemonSqueezyApi",
"com.tddworks.**.request.*",
"com.tddworks.**.response.*",
"com.tddworks.**.data.*",
"com.tddworks.**.internal.ktor.internal.*",
"com.tddworks.**.**.ktor.internal.*",
//"com.tddworks.**.*\$*$*", // Lambda functions like - LemonSqueezyLicenseApi$activeLicense$activationResult$1
"*.BuildConfig",
"*.BuildKonfig", // BuildKonfig generated
"*.ComposableSingletons*", // Jetpack Compose generated
"*.*\$*Preview\$*", // Jetpack Compose Preview functions
"*.di.*", // Koin
"*.ui.preview.*", // Jetpack Compose Preview providers
"*.*Test", // Test files
"*.*Test*", // Test cases
"*.*Mock", // mockative @Mock generated
"*.test.*", // Test util package
"*.*\$\$serializer", // Kotlinx serializer)
"**.*\$Lambda$*.*", // Lambda functions
"**.*\$inlined$*", // Inlined functions
"**.*2\$1" // transactionWithResult
)
}
includes {
classes("com.tddworks.*")
}
}
verify {
rule {
bound {
minValue = 100
}
}
}
}