diff --git a/desktop/build.gradle b/desktop/build.gradle index ecb65c9ce3..59b4a86ec1 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -67,7 +67,7 @@ task run(dependsOn: classes, type: JavaExec){ } -task dist(type: Jar, dependsOn: classes){ +task dist(type: Jar, dependsOn: configurations.runtimeClasspath){ from files(sourceSets.main.output.classesDirs) from files(sourceSets.main.output.resourcesDir) from {configurations.runtimeClasspath.collect{ it.isDirectory() ? it : zipTree(it) }}