Skip to content

Building PacketEvents

retrooper edited this page Dec 27, 2023 · 10 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 shadowJar task

Build with this command:

gradlew shadowJar
Clone this wiki locally