TARDIS

A Bukkit plugin for all Doctor Who fans — create and use a TARDIS! It’s bigger on the inside!

View the Project on GitHub eccentricdevotion/TARDIS

How to use BuildTools

TARDIS is always compiled against the latest version of Bukkit. Bukkit is being constantly updated, and sometimes TARDIS takes advantage of the new features that have been added to the Bukkit API. This means that if you don’t keep your server JAR file up-to-date, then TARDIS may not be able to run properly.

Spigot has released a tool called BuildTools that allows you to get the latest versions of Spigot and CraftBukkit (as well as their APIs — but only plugin developers need to worry about those).

Using BuildTools is a slightly tricky process to setup the first time around, but if you follow the steps below, they will hopefully help you get it right :)

This guide is for Windows, if you use Linux, then you probably already have a good idea how to do this sort of thing — just follow Spigot’s instructions

Getting the right tools

To compile Spigot / CraftBukkit you will need three things:

  1. The BuildTools JAR — you can download that here: https://hub.spigotmc.org/jenkins/job/BuildTools/
  2. The Java Software Development Kit (JDK) — download from the Oracle wbsite: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html — you probably have Java installed already, but you need this version to actually build anything from code
  3. GitHub for Windows — Get it here: https://windows.github.com

Once you have downloaded the three required tools:

  1. Put BuildTools.jar file in its own folder, for example Downloads\BuildTools\
  2. Install the Java (JDK) — it will most probably install at C:\Program Files\Java\jdk1.8.0_25\
  3. Install GitHub (let it add shortcuts to your desktop), start it up, and create a free account

Setting up to build the server JARs

You are going to be running BuildTools from the GitHub command line, but before you do that you will need to set up a Java system variable.

Follow these next steps to do that:

  1. Open an Explorer window, right-click Computer and choose Properties — this should open the Control Panel to System information
  2. On the left hand side click Advanced system settings
  3. In the System properties window that comes up click Environment variables...
  4. In the bottom (System variables) section click the New... button
  5. For Variable name type JAVA_HOME
  6. for Variable value type the path to your JDK installation, for example: C:/Program Files/Java/jdk1.8.0_25/
  7. click OK, OK, Apply etc

Building the server JARs

Almost there! The last step is to actually compile the server JAR files.

  1. Open Git Shell from the desktop shortcut
  2. The shell opens in your user directory, so you need to get to the folder where you put the BuildTools.jar file. Use the cd command to change to the right directory, for example: cd Downloads/BuildTools
  3. Now you can start the build process, type java -jar BuildTools.jar
  4. Let the programme do it’s thing, it will download everything it needs, and takes about 10 minutes to compile the JARs

Once the process is complete, you will find both the Spigot and CraftBukkit JARs waiting for you in the BuildTools folder.

Keeping up-to-date

Once you have it all setup, it is easy to keep your server up-to-date — just redo the steps under the Building the server JARs heading. BuildTools will fetch the latest code changes and produce a new set of server JARs.