Skip to content

Commit

Permalink
Fixed :desktop:dist for clean builds
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed May 12, 2023
1 parent e801823 commit 85ded23
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand All @@ -44,6 +45,3 @@ task dist(type: Jar) {
attributes 'Main-Class': project.mainClassName
}
}

dist.dependsOn classes

0 comments on commit 85ded23

Please sign in to comment.