diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-11-27 14:56:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2019-11-27 14:56:43 +0100 |
commit | 53eb07e4913bf36b10b110872af3e6dca27b4f17 (patch) | |
tree | 8bdef2ec1827310a86f26e7ed2dc845e73bc86c6 /desktop | |
parent | 3d30197a7f37d15da1649a9b40a24774b4aae06d (diff) | |
download | RustAndDust-53eb07e4913bf36b10b110872af3e6dca27b4f17.zip RustAndDust-53eb07e4913bf36b10b110872af3e6dca27b4f17.tar.gz |
upgrade : libgdx 1.9.8 -> 1.9.10, gradle 1.11 -> 5.4.1
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/build.gradle | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/desktop/build.gradle b/desktop/build.gradle index 82bb29c..89924a3 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -16,15 +16,25 @@ task run(dependsOn: classes, type: JavaExec) { def sqliteFiles = ["data/rustanddust.sqlite"] +task debug(dependsOn: classes, type: JavaExec) { + main = project.mainClassName + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + workingDir = project.assetsDir + ignoreExitValue = true + debug = true +} + task dist(type: Jar) { - from files(sourceSets.main.output.classesDir) - from files(sourceSets.main.output.resourcesDir) - from {configurations.compile.collect {zipTree(it)}} from fileTree(dir: project.assetsDir, excludes : sqliteFiles) manifest { attributes 'Main-Class': project.mainClassName } + from { + configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } + with jar } dist.dependsOn classes |