-
Notifications
You must be signed in to change notification settings - Fork 14
Building IslandCraft from Source
To build IslandCraft from source, it's recommended to have the following development tools installed:
- Git (I'm using "git version 1.9.4.msysgit.2")
- Gradle (I'm using "Gradle 2.11")
- Maven (I'm using "Apache Maven 3.2.1")
- JDK (I'm using "jdk1.8.0_73")
The recommended way to download the source is to check out the git repository. To do this you must have git installed. Then you can run the following command from a command prompt:
git clone https://github.com/hoqhuuep/IslandCraft.git
This will download the latest "develop" branch of IslandCraft. As this branch contains the latest development changes, it is not guaranteed to be stable. If you would like to build the latest stable version, run the following commands to switch to the "master" branch which only contains released versions:
cd IslandCraft
git checkout master
If you do not wish to use git, you can download the source ZIPs directly from github:
This step is only required if you wish to build the Bukkit plugin, it is not required for building the Sponge plugin.
To get the latest CraftBukkit JAR file, I can only point you to Spigot BuildTools. Please follow those instructions. When you're done you should have a craftbukkit-x.y.z.jar file. To install this JAR file to your local maven repository you need to run the following command (replace "x.y.z" with your version number, at the time of writing this is "1.8.8"):
mvn install:install-file -Dfile=craftbukkit-x.y.z.jar -DgroupId=org.bukkit -DartifactId=craftbukkit -Dversion=x.y.z-R0.1-SNAPSHOT -Dpackaging=jar
If you do not wish to install Gradle, you can replace "gradle" with "gradlew" in the following commands to use the wrapper scripts provided in the source. All these commands must be run from the root "IslandCraft" directory.
(Recommended) To build the Sponge plugin:
gradle sponge
(Recommended) To build the Bukkit plugin with support for only the latest version of CraftBukkit (this requires having the latest version of CraftBukkit installed to your local Maven repository):
gradle bukkitLatest
(Not Recommended -- just for me to build release versions) To build the Bukkit plugin with support for all versions of CraftBukkit since 1.4.7 (this requires having all versions of CraftBukkit since 1.4.7 installed to your local Maven repository):
gradle bukkit