-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle.kts
45 lines (39 loc) · 1.45 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
// Gradle settings file for multi-project build. Executed during the initialization phase.
// Defines all projects and build script classpath.
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" // for jvm toolchains, see https://github.com/gradle/foojay-toolchains
}
rootProject.apply {
name = "player"
projectDir = file(".")
buildFileName = "gradle/project.gradle.kts"
// Project containing Java/Kotlin utility classes not directly related to the player
include(":util")
project(":util").apply {
name = "util"
projectDir = file("src/util")
buildFileName = "../../gradle/util.gradle.kts"
}
// Project containing Java/Kotlin executable classes prototyping, showcasing & learning Java/Kotlin/lib features not
// directly related to the player
include(":demo")
project(":demo").apply {
name = "demo"
projectDir = file("src/demo")
buildFileName = "../../gradle/demo.gradle.kts"
}
// Set of projects containing player widgets. 1 project per widget. Projects share the same build file.
include(":widgets")
project(":widgets").apply {
name = "widgets"
projectDir = file("app/widgets")
projectDir.listFiles().orEmpty().forEach {
include(":widgets:${it.name}")
project(":widgets:${it.name}").apply {
name = "widget-${it.name}"
projectDir = it
buildFileName = "../../../gradle/widgets.gradle.kts"
}
}
}
}