Developer Setup and Installation - nsporillo/GlobalWarming GitHub Wiki

Project Setup for Development

Requirements:

Development setup:

  1. Clone repository using Git
  2. Import Maven Project
  3. In your IDE or by command line if you have Maven setup in your environment variables
  • mvn clean compile install

This will compile the Java code, install the jar artifact into your local maven repository, and copy the desired jar file to the target directory.

You can now move this jar file to the plugins directory in the spigot folder to test changes.

Spigot Setup

Requirements

  1. Java 1.8+
  2. Git
  3. BuildTools - Direct Download

GlobalWarming is designed for 1.13+, so execute BuildTools.jar on the command line. Windows:

java -jar BuildTools.jar --rev 1.13

Mac:

export MAVEN_OPTS="-Xmx2G"
java -Xmx2G -jar BuildTools.jar --rev 1.13

This will take a few minutes as it has to pull Bukkit, CraftBukkit and then apply the Spigot patches to produce the desired jar file. Once that is done, you should now be able to start Spigot. Copy the GlobalWarming.jar file to the plugins directory inside the spigot folder. Once again, execute the spigot.jar file from the command line like we did above.