From d6d82333c36e0af0b3767228a848700381a3fecc Mon Sep 17 00:00:00 2001 From: Lemmmy Date: Thu, 27 Aug 2015 16:15:44 +0100 Subject: [PATCH] Added Gradle instructions to the readme --- README.md | 11 ++++++++++- build.gradle | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56d7f4b0..bdaef1cd 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,17 @@ other game options can be accessed by clicking the "Other Options" button in the song menu. ## Building -opsu! is distributed as a Maven project. +opsu! is distributed as both a Maven and Gradle project. +### Gradle +Gradle builds are built to the `build` directory. +* To run the project, execute the Gradle task `run`. +* To create a single executable JAR file, execute the Gradle task + `build`. This will compile a jar to `build/libs/opsu-${version}.jar` with + the libraries, resources and natives packed inside the jar. + +### Maven +Maven builds are built to the `target` directory. * To run the project, execute the Maven goal `compile exec:exec`. * To create a single executable JAR file, execute the Maven goal `install -Djar`. This will link the LWJGL native libraries using a diff --git a/build.gradle b/build.gradle index 22940162..09db2707 100644 --- a/build.gradle +++ b/build.gradle @@ -92,6 +92,8 @@ jar { from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } exclude '**/Thumbs.db' + + dependsOn 'unpackNatives' } run {