forked from gmitch215/BattleCards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
44 lines (40 loc) · 1022 Bytes
/
settings.gradle.kts
File metadata and controls
44 lines (40 loc) · 1022 Bytes
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
rootProject.name = "BattleCards"
include(":battlecards")
project(":battlecards").projectDir = rootDir.resolve("plugin")
listOf("api", "abstract", "adventure").forEach {
include(":battlecards-$it")
project(":battlecards-$it").projectDir = rootDir.resolve(it)
}
mapOf(
"1_8_R1" to 8,
"1_8_R2" to 8,
"1_8_R3" to 8,
"1_9_R1" to 8,
"1_9_R2" to 8,
"1_10_R1" to 8,
"1_11_R1" to 8,
"1_12_R1" to 8,
"1_13_R1" to 8,
"1_13_R2" to 8,
"1_14_R1" to 8,
"1_15_R1" to 8,
"1_16_R1" to 8,
"1_16_R2" to 8,
"1_16_R3" to 8,
"1_17_R1" to 16,
"1_18_R1" to 17,
"1_18_R2" to 17,
"1_19_R1" to 17,
"1_19_R2" to 17,
"1_19_R3" to 17,
"1_20_R1" to 17,
"1_20_R2" to 17,
"1_20_R3" to 17
).forEach {
val id = it.key
val minJava = it.value
if (JavaVersion.current().isCompatibleWith(JavaVersion.toVersion(minJava))) {
include(":battlecards-$id")
project(":battlecards-$id").projectDir = rootDir.resolve("nms/$id")
}
}