Skip to content

Building PacketEvents

retrooper edited this page Aug 4, 2022 · 10 revisions

How to build PacketEvents

PacketEvents is a Gradle project written in Java 8. Building it is a speedy and easy process.
We build PacketEvents using Java 8 but you may build it with a newer Java version if you wish. (Do so if you can)

Requirements

  • Git
  • Java 8+
  • 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