-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
23 lines (20 loc) · 982 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
gradle.afterProject {
rootProject.extra["dockerHubUsername"] = System.getenv("DOCKER_HUB_USERNAME")
?: if (extra.has("DOCKER_HUB_USERNAME")) extra["DOCKER_HUB_USERNAME"] else null
rootProject.extra["dockerHubPassword"] = System.getenv("DOCKER_HUB_PASSWORD")
?: if (extra.has("DOCKER_HUB_PASSWORD")) extra["DOCKER_HUB_PASSWORD"] else null
rootProject.extra["dockerHubEmail"] = System.getenv("DOCKER_HUB_EMAIL")
?: if (extra.has("DOCKER_HUB_EMAIL")) extra["DOCKER_HUB_EMAIL"] else null
}
rootProject.name = "litfass"
include("litfass-server")
rootProject.children.forEach { subproject ->
val dir = subproject.projectDir.absolutePath
val name = subproject.name.split("/").last()
val buildFileName = "${subproject.name}.gradle.kts"
assert(file("$dir/$buildFileName").exists()) {
"File ${subproject.projectDir}/${buildFileName} does not exist"
}
subproject.name = name
subproject.buildFileName = buildFileName
}