-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle.kts
30 lines (22 loc) · 934 Bytes
/
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
rootProject.name = "zap-extensions"
val addOnsProjectName = "addOns"
// include(addOnsProjectName)
// include("testutils")
// include("sharedutils")
// Keep the add-ons in alphabetic order.
var addOns = listOf(
"automacrobuilder",
)
addOns.forEach { include("$addOnsProjectName:$it") }
rootProject.children.forEach { project -> setUpProject(settingsDir, project) }
fun setUpProject(parentDir: File, project: ProjectDescriptor) {
project.projectDir = File(parentDir, project.name)
project.buildFileName = "${project.name}.gradle.kts"
if (!project.projectDir.isDirectory) {
throw AssertionError("Project ${project.name} has no directory: ${project.projectDir}")
}
if (!project.buildFile.isFile) {
throw AssertionError("Project ${project.name} has no build file: ${project.buildFile}")
}
project.children.forEach { project -> setUpProject(project.parent!!.projectDir, project) }
}