Made JAR file executable

This commit is contained in:
Daniel Wolf 2018-01-24 20:10:11 +01:00
parent db3615b3c3
commit 61731441b3
1 changed files with 11 additions and 0 deletions

View File

@ -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) } }
}