diff --git a/desktop/build.gradle b/desktop/build.gradle index b2b4a2d..d4f523f 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -32,8 +32,9 @@ task debug(dependsOn: classes, type: JavaExec) { } task dist(type: Jar) { - from files(sourceSets.main.output.classesDirs) - from files(sourceSets.main.output.resourcesDir) + with jar + dependsOn classes + dependsOn ":core:build" from { duplicatesStrategy DuplicatesStrategy.EXCLUDE configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } @@ -44,6 +45,3 @@ task dist(type: Jar) { attributes 'Main-Class': project.mainClassName } } - -dist.dependsOn classes -