2022-01-27 21:04:22 +01:00
:toc:
:toclevels: 2
= Compiling
2020-01-29 23:10:00 +01:00
2024-05-19 13:32:18 +02:00
You can compile FastAsyncWorldEdit as long as you have some version of Java greater than or equal to 21 installed. Gradle will download JDK 21 specifically if needed,
2021-01-25 11:14:09 +01:00
but it needs some version of Java to bootstrap from.
2020-01-29 23:10:00 +01:00
2024-05-19 13:32:18 +02:00
Note that if you have JRE 8 installed, Gradle will currently attempt to use that to compile, which will not work. It is easiest to uninstall JRE 8 and replace it with JDK 21.
2021-04-23 14:49:41 +02:00
2024-05-19 13:32:18 +02:00
You can get the JDK 21 link:https://adoptium.net/[here] from Adoptium.
2021-04-23 14:49:41 +02:00
The build process uses Gradle, which you do *not* need to download. FastAsyncWorldEdit is a multi-module project with three active modules:
2020-01-29 23:10:00 +01:00
* `worldedit-core` contains the FastAsyncWorldEdit API
* `worldedit-bukkit` is the Bukkit plugin
2021-04-23 14:49:41 +02:00
* `worldedit-cli` is the command line interface
2020-01-29 23:10:00 +01:00
2022-01-27 21:04:22 +01:00
== To compile...
2020-01-29 23:10:00 +01:00
2022-01-27 21:04:22 +01:00
=== On Windows
2020-01-29 23:10:00 +01:00
2021-05-12 01:21:09 +02:00
1. Shift + right-click the folder with FastAsyncWorldEdit's files and click "Open command prompt".
2021-05-07 23:48:55 +02:00
2. `gradlew clean build`
2020-01-29 23:10:00 +01:00
2022-01-27 21:04:22 +01:00
=== On Linux, BSD, or Mac OS X
2020-01-29 23:10:00 +01:00
1. In your terminal, navigate to the folder with FastAsyncWorldEdit's files (`cd /folder/of/fawe/files`)
2021-05-07 23:48:55 +02:00
2. `./gradlew clean build`
2020-01-29 23:10:00 +01:00
2022-01-27 21:04:22 +01:00
== Then you will find...
2020-01-29 23:10:00 +01:00
You will find:
* The core FastAsyncWorldEdit API in **worldedit-core/build/libs**
2021-04-23 14:49:41 +02:00
* FastAsyncWorldEdit for Bukkit in **worldedit-bukkit/build/libs**
* the CLI version in **worldedit-cli/build/libs**
2020-01-29 23:10:00 +01:00
2021-11-30 21:30:46 +01:00
If you want to use FastAsyncWorldEdit, use the `FastAsyncWorldEdit-<identifier>` version obtained in **worldedit-bukkit/build/libs**.
2021-04-23 14:49:41 +02:00
(The `-#` version includes FastAsyncWorldEdit + necessary libraries.)
2020-01-29 23:10:00 +01:00
2022-01-27 21:04:22 +01:00
== Other commands
2020-01-29 23:10:00 +01:00
2022-01-27 21:04:22 +01:00
* `gradlew idea` will generate an link:https://www.jetbrains.com/idea/[IntelliJ IDEA] module for each folder.
2020-01-29 23:10:00 +01:00
_Possibly broken_:
2022-01-27 21:04:22 +01:00
* `gradlew eclipse` will generate an link:https://www.eclipse.org/downloads/[Eclipse] project for each folder.
2020-01-29 23:10:00 +01:00