forked from mockk/mockk
/
build.gradle.kts
51 lines (42 loc) · 1.27 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
import buildsrc.config.Deps
plugins {
buildsrc.convention.`kotlin-multiplatform`
buildsrc.convention.`mockk-publishing`
}
description = "Mocking library for Kotlin"
val mavenName: String by extra("MockK")
val mavenDescription: String by extra("${project.description}")
kotlin {
jvm {
withJava()
}
sourceSets {
val commonMain by getting {
dependencies {
api(projects.modules.mockkDsl)
api(projects.modules.mockkAgent)
api(projects.modules.mockkAgentApi)
implementation(dependencies.platform(Deps.Libs.kotlinCoroutinesBom))
implementation(Deps.Libs.kotlinCoroutinesCore)
implementation(kotlin("reflect"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-junit5"))
}
}
val jvmMain by getting {
dependencies {
implementation(Deps.Libs.slfj)
implementation(Deps.Libs.junit4)
implementation(Deps.Libs.junitJupiter)
}
}
val jvmTest by getting {
dependencies {
implementation(Deps.Libs.junitJupiter)
}
}
}
}