forked from mockk/mockk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
59 lines (46 loc) · 1.76 KB
/
settings.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
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
apply(from = "gradle/detect-android-sdk.gradle")
rootProject.name = "mockk-root"
includeBuild("plugins/dependencies")
includeBuild("plugins/configuration")
include("mockk-jvm")
include("mockk-common")
//include 'mockk-js'
val hasAndroidSdk = extra["hasAndroidSdk"]
if (hasAndroidSdk == true) include("mockk-android")
include("mockk-agent-api")
include("mockk-agent-common")
include("mockk-agent-jvm")
if (hasAndroidSdk == true) {
include("mockk-agent-android")
include("mockk-agent-android-dispatcher")
}
include("mockk-dsl")
include("mockk-dsl-jvm")
// include 'mockk-dsl-js'
// include("mockk-client-tests-jvm")
project(":mockk-jvm").projectDir = file("mockk/jvm")
project(":mockk-common").projectDir = file("mockk/common")
//project(":mockk-js").projectDir = file("mockk/js")
if (hasAndroidSdk == true) project(":mockk-android").projectDir = file("mockk/android")
project(":mockk-agent-api").projectDir = file("agent/api")
project(":mockk-agent-common").projectDir = file("agent/common")
project(":mockk-agent-jvm").projectDir = file("agent/jvm")
if (hasAndroidSdk == true) {
project(":mockk-agent-android").projectDir = file("agent/android")
project(":mockk-agent-android-dispatcher").projectDir = file("agent/android/dispatcher")
}
project(":mockk-dsl").projectDir = file("dsl/common")
project(":mockk-dsl-jvm").projectDir = file("dsl/jvm")
// project(":mockk-dsl-js").projectDir = file("dsl/js")
// project(":mockk-client-tests-jvm").projectDir = file("client-tests/jvm")
// very weird hack to make it working in IDE and stay compatible with naming
if (gradle.startParameter.taskNames.contains("publish")) {
project(":mockk-jvm").name = "mockk"
}