-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.gradle.kts
81 lines (78 loc) · 4.4 KB
/
root.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
69
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
// This marks the current project as the root of a multi-version project.
// Any project using `gg.essential.multi-version` must have a parent with this root plugin applied.
// Advanced users may use multiple (potentially independent) multi-version trees in different sub-projects.
// This is currently equivalent to applying `com.replaymod.preprocess-root`.
id("gg.essential.multi-version.root")
}
group = "yancey.openparticle"
version = project.version
preprocess {
// Here you first need to create a node per version you support and assign it an integer Minecraft version.
// The mappings value is currently meaningless.
val fabric11600 = createNode("1.16-fabric", 11600, "yarn")
val fabric11601 = createNode("1.16.1-fabric", 11601, "yarn")
val fabric11602 = createNode("1.16.2-fabric", 11602, "yarn")
val fabric11603 = createNode("1.16.3-fabric", 11603, "yarn")
val fabric11604 = createNode("1.16.4-fabric", 11604, "yarn")
val fabric11605 = createNode("1.16.5-fabric", 11605, "yarn")
val fabric11700 = createNode("1.17-fabric", 11700, "yarn")
val fabric11701 = createNode("1.17.1-fabric", 11701, "yarn")
val fabric11800 = createNode("1.18-fabric", 11800, "yarn")
val fabric11801 = createNode("1.18.1-fabric", 11801, "yarn")
val fabric11802 = createNode("1.18.2-fabric", 11802, "yarn")
val fabric11900 = createNode("1.19-fabric", 11900, "yarn")
val fabric11901 = createNode("1.19.1-fabric", 11901, "yarn")
val fabric11902 = createNode("1.19.2-fabric", 11902, "yarn")
val fabric11903 = createNode("1.19.3-fabric", 11903, "yarn")
val fabric11904 = createNode("1.19.4-fabric", 11904, "yarn")
val fabric12000 = createNode("1.20-fabric", 12000, "yarn")
val fabric12001 = createNode("1.20.1-fabric", 12001, "yarn")
val fabric12002 = createNode("1.20.2-fabric", 12002, "yarn")
val fabric12003 = createNode("1.20.3-fabric", 12003, "yarn")
val fabric12004 = createNode("1.20.4-fabric", 12004, "yarn")
val fabric12005 = createNode("1.20.5-fabric", 12005, "yarn")
val fabric12006 = createNode("1.20.6-fabric", 12006, "yarn")
val fabric12100 = createNode("1.21-fabric", 12100, "yarn")
val fabric12101 = createNode("1.21.1-fabric", 12101, "yarn")
val fabric12102 = createNode("1.21.2-fabric", 12102, "yarn")
val fabric12103 = createNode("1.21.3-fabric", 12102, "yarn")
// And then you need to tell the preprocessor which versions it should directly convert between.
// This should form a directed graph with no cycles (i.e. a tree), which the preprocessor will then traverse to
// produce source code for all versions from the main version.
// Do note that the preprocessor can only convert between two projects when they are either on the same Minecraft
// version (but use different mappings, e.g. 1.16.2 forge to fabric), or when they are using the same intermediary
// mappings (but on different Minecraft versions, e.g. 1.12.2 forge to 1.8.9 forge, or 1.16.2 fabric to 1.18 fabric)
// but not both at the same time, i.e. you cannot go straight from 1.12.2 forge to 1.16.2 fabric, you need to go via
// an intermediary 1.16.2 forge project which has something in common with both.
fabric12103.link(fabric12102)
fabric12102.link(fabric12101)
fabric12101.link(fabric12100)
fabric12100.link(fabric12006)
fabric12006.link(fabric12005)
fabric12005.link(fabric12004)
fabric12004.link(fabric12003)
fabric12003.link(fabric12002)
fabric12002.link(fabric12001)
fabric12001.link(fabric12000)
fabric12000.link(fabric11904)
fabric11904.link(fabric11903)
fabric11903.link(fabric11902)
fabric11902.link(fabric11901)
fabric11901.link(fabric11900)
fabric11900.link(fabric11802)
fabric11802.link(fabric11801, file("versions/mapping-1.18.2-1.18.1.txt"))
fabric11801.link(fabric11800)
fabric11800.link(fabric11701)
fabric11701.link(fabric11700)
fabric11700.link(fabric11605)
fabric11605.link(fabric11604)
fabric11604.link(fabric11603)
fabric11603.link(fabric11602)
fabric11602.link(fabric11601)
fabric11601.link(fabric11600)
// For any link, you can optionally specify a file containing extra mappings which the preprocessor cannot infer by
// itself, e.g. forge intermediary names do not contain class names, so you may need to supply mappings for those
// manually.
// forge11202.link(forge10809, file("versions/1.12.2-1.8.9.txt"))
}