DrEinsteinium/WikiLink — pull request #6 by Maxwolf (2014-06-11 10:54:32+00:00)
Title: Gradle script for WikiLink mod

Howdy! Talked to you on TS the other night, got your script working good here and downloading all your dependencies. I replaced your Reference.java versions with @MAJOR@, @MINOR@, @BUILD@ which the gradle script will populate at compile time with the needed versions.

So if you want to bump a version number you change your 'build.properties' file to have the latest information. Changing the version.mod.major and version.mod.minor will update the mod accordingly. The build flag is populated by Jenkins itself via environment variables, if they don't exist then it just makes it 0. So 3.2 would compiled on your local computer: WikiLink-3.2.0.jar

This gradle script also generates a zip file with your API class inside of it and is deobfuscated so that other modders can use it. An example file name for this package would be: WikiLink-3.2.0-api.zip

![screenshot 2014-06-11 03 40 18](https://cloud.githubusercontent.com/assets/6830398/3243265/3e6aacf0-f156-11e3-98c6-09898c9b7758.png)

If you are cloning the repo fresh (which you will want to do after merging this), run the install.bat file or edit and look at the single call it makes to the gradle wrapper to setup Forge and download all your dependencies and setup eclipse workspace.

To build the mod just type in the root of the project (where gradlew.bat lives): gradlew build

To build a CI build environment (such as Jenkins) you run: gradlew clean setupCIWorkspace build

All of your binary files after building any of these commands will end up in the output folder in the root directory. I hope this script helps you get into the continuous integration game and lets you focus on working on your mod and less on deployment :)

Peace!