Compiling Plex
Plex is built using Gradle, making compilation simple with no manual dependency management required. If you prefer, pre-compiled builds are also available on the CI Server.
Prerequisites
Section titled “Prerequisites”Before compiling, ensure you meet the following requirements:
Java 21 (JDK 21) – Plex requires JDK 21 to compile. Older versions will result in errors.
- If you don’t have Java installed, download it from Adoptium.
- During installation, enable the option to add JDK 21 to your system PATH (if not selected by default).
(Optional) Git – Recommended for cloning the repository and storing build information.
- Windows users: Download Git from git-scm.com.
- macOS/Linux users: Git is typically pre-installed.
Compiling Plex
Section titled “Compiling Plex”Download the Source Code
Section titled “Download the Source Code”Clone the Plex repository using Git:
git clone https://github.com/plexusorg/Plex
If you downloaded the source as a ZIP, extract it and navigate to the folder.
Navigate to the Project Directory
Section titled “Navigate to the Project Directory”cd Plex
Run the Build Command
Section titled “Run the Build Command”Plex includes Gradle (no separate installation needed). Run the appropriate command for your OS:
./gradlew build
gradlew.bat build
Locate the Compiled JARs
Section titled “Locate the Compiled JARs”After a successful build, the compiled files (Plex-Server.jar
and Plex-Proxy.jar
) will be in:
build/libs/
Running Plex
Section titled “Running Plex”- Java 21 is required on your server to run Plex.
- For best results, use a Vault-compatible permissions plugin.
- Check Versions for compatibility details.
Troubleshooting
Section titled “Troubleshooting”Permission Denied (macOS/Linux)
Section titled “Permission Denied (macOS/Linux)”If you encounter a Permission denied
error, run:
chmod a+x gradlew
This grants execution permissions to the Gradle wrapper.
Need Help?
Section titled “Need Help?”For further assistance, you can join our Discord server and ask for support there.