-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
56 lines (47 loc) · 1.42 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
rootProject.name = "scafall"
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven("https://artifacts.wolfyscript.com/artifactory/gradle-dev")
}
}
sequenceOf(
"api",
"common",
"loader-api"
).forEach {
include(":$it")
project(":$it").projectDir = file(it)
}
// Platforms
sequenceOf(
"spigot",
"sponge"
).forEach {
// platform implementation project
include(":$it")
project(":$it").projectDir = file(it)
// platform loader project
include(":$it:loader")
project(":$it:loader").projectDir = file("$it/loader")
}
include(":spigot:platform")
project(":spigot:platform").projectDir = file("spigot/platform")
include(":sponge:platform")
project(":sponge:platform").projectDir = file("sponge/platform")
// Sample Plugin Modules
val samplesDir: String = "samples"
fun samplePlugin(root: String, vararg modules: String) {
println("Samples dir: $samplesDir")
include(":$samplesDir:$root")
project(":$samplesDir:$root").projectDir = file("$samplesDir/$root")
modules.forEach {
// platform loader project
include(":$samplesDir:$root:$it")
project(":$samplesDir:$root:$it").projectDir = file("$samplesDir/$root/${it.replace(":", "/")}")
}
}
samplePlugin("multi-platform-plugin", "common", "spigot", "spigot:loader", "sponge", "sponge:loader")
samplePlugin("single-platform-plugin", "spigot")