Skip to content

Commit ac70104

Browse files
Update build requirements
1 parent 1415e53 commit ac70104

1 file changed

Lines changed: 53 additions & 40 deletions

File tree

README.md

Lines changed: 53 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -273,43 +273,56 @@ database:
273273
274274
## Build Requirements
275275
276-
Since TrueDiscordLink uses NMS, you need to have all versions of NMS available.
277-
278-
The easiest way to do this is to use the following GitHub repository, follow its instructions, then copy the final jar to the project, naming it "all-spigot-nms.jar".
279-
280-
https://github.com/Jacxk/all-spigot-nms
281-
282-
If, for whatever reason, this doesn't work, you can comment that out and include all of the following versions via BuildTools:
283-
284-
```
285-
(Java 8)
286-
1.8
287-
1.8.3
288-
1.8.8
289-
1.9.2
290-
1.9.4
291-
1.10.2
292-
1.11.2
293-
1.12.2
294-
1.13
295-
1.13.2
296-
1.14.4
297-
1.15.2
298-
1.16.1
299-
1.16.3
300-
1.16.5
301-
302-
(Java 16)
303-
1.17.1
304-
305-
(Java 17)
306-
1.18.1
307-
1.18.2
308-
```
309-
310-
Run BuildTools with the following command for each version:
311-
```
312-
java -jar BuildTools.jar --rev <version> --remapped
313-
```
314-
315-
Depending on your default Java version, you may need to provide the file location to a "java.exe" file instead of just running "java" for some (or most) of the commands.
276+
Since TrueDiscordLink uses NMS, you need to have all supported versions of NMS available.
277+
278+
279+
1) Install [JDK 17 and JDK 8](https://adoptium.net/temurin/releases/).
280+
2) Download [BuildTools from Spigot](https://www.spigotmc.org/wiki/buildtools/)
281+
1) If you're on Windows, I've written a batch script which will run through and build all of the required versions.
282+
```batch
283+
@ECHO OFF
284+
SET JAVA8_PATH="C:\Program Files\Eclipse Adoptium\jdk-8.0.372.7-hotspot\bin\java.exe"
285+
SET JAVA17_PATH="C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe"
286+
%JAVA17_PATH% -jar BuildTools.jar --rev 1.20.1 --remapped
287+
%JAVA17_PATH% -jar BuildTools.jar --rev 1.19 --remapped
288+
%JAVA17_PATH% -jar BuildTools.jar --rev 1.18.2 --remapped
289+
%JAVA17_PATH% -jar BuildTools.jar --rev 1.18.1 --remapped
290+
%JAVA17_PATH% -jar BuildTools.jar --rev 1.17.1 --remapped
291+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.16.5 --remapped
292+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.16.3 --remapped
293+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.16.1 --remapped
294+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.15.2 --remapped
295+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.14.4 --remapped
296+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.13.2 --remapped
297+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.13 --remapped
298+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.13 --remapped
299+
%JAVA8_PATH% -jar BuildTools.jar --rev 1.12.2 --remapped
300+
PAUSE
301+
```
302+
2) If you're on a different machine, you'll need to manually run the BuildTools utility with the `--remapped` argument for all of the following versions:
303+
```
304+
(Java 8)
305+
1.8
306+
1.8.3
307+
1.8.8
308+
1.9.2
309+
1.9.4
310+
1.10.2
311+
1.11.2
312+
1.12.2
313+
1.13
314+
1.13.2
315+
1.14.4
316+
1.15.2
317+
1.16.1
318+
1.16.3
319+
1.16.5
320+
321+
(Java 17)
322+
1.17.1
323+
1.18.1
324+
1.18.2
325+
1.19
326+
1.20.1
327+
```
328+
3) Finally, set the `SERVER_DIRECTORY` environment variable in your IDE to a path to a test server (not the plugins folder, but the server's container folder).

0 commit comments

Comments
 (0)