Adding gradle build support to the project. #92
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A few notes on this commit:
o build an executable jar file using './gradlew' on osx/*nix
or './gradlew.bat' on windows (no arguments). This will create
an executable jar file at build/libs/. No gradle installation is
required, it will be auto-downloaded on first-call as long as
JAVA_HOME is set.
o we are using gradle 2.14.1 as that is the latest version of gradle
which supports java 6 as the build VM. This is to maximize compatibility
with whoever is building the project.
o we are using the gradle shadow plugin to build an executable jar file
o I modified the default location of the gradle wrapper file
(gradle/wrapper/gradle-wrapper.jar) as having another thing in the
root directory called gradlexx screws up tab completion for the
./gradlew commands.
o the build.gradle file contains a few comments and links on the
rest of the details.
o the 'gradlew' and 'gradlew.bat' files are auto generated by the gradle wrapper.
See relevant link in build.gradle for details.
o build only tested on java 6, but I would assume it works on later versions.