-
Notifications
You must be signed in to change notification settings - Fork 64
/
settings.gradle
44 lines (34 loc) · 1.05 KB
/
settings.gradle
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
rootProject.name = 'KluentMultiplatform'
def buildAndroid = hasProperty("ANDROID")
def buildNative = hasProperty("NATIVE")
def buildJs = hasProperty("JS")
def skipJVM = hasProperty("SKIPJVM")
if (!buildAndroid) {
logger.warn("Kluent Android build not included. Pass -PANDROID to build Android instead of JVM")
}
if (!buildNative) {
logger.warn("Kluent Native build not included. Pass -PNATIVE to also build native")
}
if (!buildJs) {
logger.warn("Kluent JS build not included. Pass -PJS to also build JS")
}
if (skipJVM) {
logger.warn("Skipping JVM build")
}
include 'common'
project(':common').name = 'kluent-common'
if (!skipJVM) {
include 'jvm'
// TODO(2.0) Rename to kluent-jvm
def jvmProjectName = buildAndroid ? 'kluent-android' : 'kluent'
project(':jvm').name = jvmProjectName
}
if (buildJs) {
include 'js'
project(':js').name = 'kluent-js'
}
if (buildNative) {
enableFeaturePreview('GRADLE_METADATA')
include 'native'
project(':native').name = 'kluent-native'
}