Skip to content

Commit

Permalink
Distribution build task cleans the build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbunkov committed Jan 15, 2023
1 parent b0ac7a4 commit 4ce0740
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tasks.register('prepareDist', Copy) {
dependsOn tasks.copyDeptool, tasks.copyResolver
dependsOn tasks.cleanBuild, tasks.copyDeptool, tasks.copyResolver
}

tasks.register('zipDist', Zip) {
Expand All @@ -20,4 +20,8 @@ tasks.register('copyResolver', Copy) {
exclude '**/build', '**/.gradle'
}
into project.layout.buildDirectory.dir('install/deptool/resolver')
}

tasks.register('cleanBuild', Delete) {
delete project.buildDir
}

0 comments on commit 4ce0740

Please sign in to comment.