Skip to content

Commit 6a19a6f

Browse files
committed
fix(gradle): clean up the sub-project build directory
1 parent 2d86f8f commit 6a19a6f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,11 @@ task copyToParent(type: Copy) {
8282

8383
build.finalizedBy(copyToParent)
8484

85+
gradle.buildFinished {
86+
if (project.hasProperty('cleanSubBuild')) {
87+
subprojects {
88+
buildDir.deleteDir()
89+
}
90+
}
91+
}
92+

0 commit comments

Comments
 (0)