From fb963e376080e32bb728efcbe552ea90361b9946 Mon Sep 17 00:00:00 2001 From: eandr127 Date: Thu, 3 Nov 2016 18:28:23 -0400 Subject: [PATCH] Fixed Gradle not copying file on initial build --- build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 8886d46..e57f83d 100644 --- a/build.gradle +++ b/build.gradle @@ -65,14 +65,18 @@ task deploy(type: Jar) { baseName = project.name from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } with jar - - // Copy to base directory +} + +// Copy to base directory +task copyToRoot << { copy { from "build/libs/Luminescent.jar" into "/" } } +deploy.finalizedBy copyToRoot + task run(dependsOn:deploy) << { javaexec { main="-jar";