-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathsettings.gradle
76 lines (66 loc) · 2.11 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/temporary") }
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven") }
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
}
}
rootProject.name = "korlibs"
boolean isPropertyTrue(String name) {
return System.getenv(name) == "true" || System.getProperty(name) == "true"
}
boolean inCI = isPropertyTrue("CI")
boolean includeKorlibsSamples = isPropertyTrue("INCLUDE_KORLIBS_SAMPLES")
boolean disabledExtraKorgeLibs = isPropertyTrue("DISABLED_EXTRA_KORGE_LIBS")
include(":kbignum")
include(":luak")
include(":klock")
include(":klogger")
include(":korinject")
include(":kmem")
include(":kds")
include(":korma")
include(":krypto")
include(":korte")
include(":korio")
include(":korim")
include(":korau")
include(":korgw")
include(":korvi")
include(":korge")
include(":korge-gradle-plugin")
include(":korge-reload-agent")
include(":korge-sandbox")
if (!inCI) {
}
if (!disabledExtraKorgeLibs) {
include(":luak")
include(":kbox2d")
include(":korge-dragonbones")
include(":korge-spine")
include(":korge-swf")
include(":korge-box2d")
include(":korge-fleks")
//include(":samples:parallax-scrolling-aseprite")
//include(":samples:tiled-background")
//include(":samples:fleks-ecs")
// This is required because having tons of gradle modules is super slow
boolean skipKorgeSamples = !includeKorlibsSamples
if (!skipKorgeSamples && !inCI) {
fileTree(new File(rootProject.projectDir, "samples")) {
include("**" + "/build.gradle.kts")
include("**" + "/build.gradle")
exclude("**" + "/build/**")
}.forEach {
String sample = moduleName(it.parentFile)
include(":$sample")
//project(":$sample").projectDir = File(relativePath(it.parent))
}
}
}
String moduleName(File f) {
return (f.parentFile == rootDir) ? f.name : "${moduleName(f.parentFile)}:${f.name}"
}