-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
settings.gradle.kts
68 lines (60 loc) · 1.67 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
60
61
62
63
64
65
66
67
68
plugins {
id("org.zaproxy.common.settings") version "0.3.0"
id("com.diffplug.spotless") version "6.25.0" apply false
}
rootProject.name = "zap-core-help"
val addOnsProjectName = "addOns"
include(addOnsProjectName)
include("commonFiles")
// Keep the add-ons in alphabetic order.
var addOns =
listOf(
"help",
"help_ar_SA",
"help_az_AZ",
"help_bs_BA",
"help_da_DK",
"help_de_DE",
"help_el_GR",
"help_es_ES",
"help_fa_IR",
"help_fil_PH",
"help_fr_FR",
"help_hi_IN",
"help_hr_HR",
"help_hu_HU",
"help_id_ID",
"help_it_IT",
"help_ja_JP",
"help_ko_KR",
"help_ms_MY",
"help_pl_PL",
"help_pt_BR",
"help_ro_RO",
"help_ru_RU",
"help_si_LK",
"help_sk_SK",
"help_sl_SI",
"help_sq_AL",
"help_sr_CS",
"help_sr_SP",
"help_tr_TR",
"help_ur_PK",
"help_zh_CN",
)
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 { it -> setUpProject(it.parent!!.projectDir, it) }
}