Skip to content

Building PacketEvents

retrooper edited this page May 3, 2024 · 5 revisions

How to build PacketEvents

Building PacketEvents requires the Gradle JVM to use Java 17 due to our unit tests.
Regardless of the Gradle JVM being Java 17, PacketEvents is still written with the Java 8 SDK and will produce a runnable for Java 8.

Requirements

  • Git
  • Java 17+ for Gradle JVM
  • Gradle

Step 1 - Clone the repository(Downloading source code)

Clone the packetevents repository using this Git command:

git clone --branch 2.0 https://github.com/retrooper/packetevents.git

Step 2 - Build the Gradle Project using the build task

Build with this command:

gradlew build