-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
38 lines (30 loc) · 1.17 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
/*
* © Copyright by Astride UG (haftungsbeschränkt) 2018 - 2019.
*/
/*
* © Copyright by Astride UG (haftungsbeschränkt) 2018 - 2019.
*/
/*
* © Copyright - Lars Artmann aka. LartyHD 2018.
*/
rootProject.name = "DarkBedrock"
rootProject.buildFileName = "build.gradle"
private val api = "api"
private val common = "common"
private val spigot = "spigot"
//private val sponge = "sponge"
private val bungee = "bungee"
private val velocity = "velocity"
includeProject("Darkness", listOf(common, spigot, bungee, "universal"))
includeProject("DarkFrame", listOf(common, spigot, bungee, velocity))
//includeProject("Commands", listOf(spigot))
//findProject(":DarkFrame:ClassModules:velocity")?.name = "moduleplugin-velocity"
//
//includeProjectApi("AnnotatedCommands", withBase("bukkit", "bungee", "velocity"))
includeProjectApi("Modules", listOf(api, common))
includeProjectApi("Events", listOf(api, common))
fun includeProjectApi(name: String, list: List<String>) = includeProject("APIs:$name", list)
fun includeProject(name: String, list: List<String>) = list.forEach {
include(":$name:$it")
findProject(":$name:$it")?.name = "${name.split(":").last()}-${it.capitalize()}"
}