Commit be6d5e2
committed
Gradle 9, independence from AT plugin, major update to DSL
This major update to the ForgeGradle 7 Beta introduces the Gradle 9
requirement and is now completely built on Java, instead of being a
Java/Groovy mixture. There are two major changes beta testers should be
aware of.
First, the `net.minecraftforge.accesstransformers` plugin *must be
applied* before ForgeGradle in order to use AccessTransformers.
Additionally, ATs must be declared within the Minecraft dependency
itself, not within the Minecraft extension block.
```groovy
dependencies {
implementation minecraft.dep(libs.forge) {
accessTransformer =
file('src/main/resources/META-INF/accesstransformer.cfg')
}
}
```
Additionally, mappings can be declared either within the Minecraft
extension or in the Minecraft dependency, with priority given to the
latter.
Second, this update now includes **very experimental** support for
drop-in replacing the tools used by ForgeGradle, which are currently the
Minecraft Mavenizer and Slime Launcher. Things could break and the
implementation is very ugly, but will be stabilized in due time. Also,
there is currently no IDE linting supported (because Gradle sucks).
```groovy
fgtools {
mavenizer {
classpath = 'me.jonathing:mavenizer:1.0.0'
}
}
```
There is currently no other documentation on this and should be used at
your own risk if you want to test custom versions of the mavenizer and
launcher. Everything you need will be found in
`net.minecraftforge.gradle.ToolsExtension` and
`net.minecraftforge.gradle.ToolsDefinition`.1 parent 7d7f525 commit be6d5e2
File tree
56 files changed
+3097
-3512
lines changed- gradle/wrapper
- src/main
- groovy/net/minecraftforge/gradle
- java/net/minecraftforge/gradle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+3097
-3512
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
| 8 | + | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | | - | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
60 | 63 | | |
61 | | - | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 86 | | |
96 | 87 | | |
97 | 88 | | |
98 | | - | |
| 89 | + | |
99 | 90 | | |
100 | 91 | | |
101 | 92 | | |
102 | | - | |
| 93 | + | |
103 | 94 | | |
104 | 95 | | |
105 | 96 | | |
106 | 97 | | |
107 | 98 | | |
108 | | - | |
109 | 99 | | |
110 | 100 | | |
111 | 101 | | |
| |||
117 | 107 | | |
118 | 108 | | |
119 | 109 | | |
| 110 | + | |
120 | 111 | | |
121 | 112 | | |
122 | 113 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
132 | 119 | | |
133 | | - | |
| 120 | + | |
| 121 | + | |
134 | 122 | | |
135 | 123 | | |
136 | 124 | | |
137 | 125 | | |
138 | 126 | | |
139 | | - | |
| 127 | + | |
140 | 128 | | |
141 | 129 | | |
142 | 130 | | |
| |||
147 | 135 | | |
148 | 136 | | |
149 | 137 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 138 | | |
155 | 139 | | |
156 | 140 | | |
| 141 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments