forked from mockk/mockk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (41 loc) · 1.24 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
import buildsrc.config.excludeGeneratedGradleDslAccessors
plugins {
base
org.jetbrains.kotlinx.`binary-compatibility-validator`
org.jetbrains.kotlinx.kover
idea
// note: plugin versions are set in ./buildSrc/build.gradle.kts
}
group = "io.mockk"
apiValidation {
ignoredProjects += listOf(
projects.testModules.loggerTests.name,
projects.testModules.clientTests.name,
projects.testModules.performanceTests.name,
)
}
idea {
module {
isDownloadSources = true
isDownloadJavadoc = true
excludeGeneratedGradleDslAccessors(layout)
excludeDirs = excludeDirs + layout.files(
".idea",
"gradle/wrapper",
"modules/mockk-agent-android/.cxx",
)
}
}
dependencies {
kover(projects.modules.mockk)
kover(projects.modules.mockkAgent)
// if the android SDK is not available trying to resolve the module names will fail
listOf("android", "agent-android").forEach { module ->
rootProject.subprojects.find { it.name == "mockk-$module" }?.let {
kover(it)
}
}
kover(projects.testModules.loggerTests)
kover(projects.testModules.clientTests)
kover(projects.testModules.performanceTests)
}