From 61731441b3a7bd712e98a2f7f893ad37e28d11a2 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Wed, 24 Jan 2018 20:10:11 +0100 Subject: [PATCH] Made JAR file executable --- extras/rhubarb-for-spine/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extras/rhubarb-for-spine/build.gradle b/extras/rhubarb-for-spine/build.gradle index d39c4cf..21e6aa7 100644 --- a/extras/rhubarb-for-spine/build.gradle +++ b/extras/rhubarb-for-spine/build.gradle @@ -42,4 +42,15 @@ compileKotlin { } compileTestKotlin { kotlinOptions.jvmTarget = '1.8' +} + +jar { + manifest { + attributes 'Main-Class': 'com.rhubarb_lip_sync.rhubarb_for_spine.MainKt' + } + + // This line of code recursively collects and copies all of a project's files + // and adds them to the JAR itself. One can extend this task, to skip certain + // files or particular types at will + from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } } \ No newline at end of file