Skip to content

Commit

Permalink
[Maintenance] Update gradle clean helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Aug 26, 2024
1 parent f2a2c1c commit 604ac8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ plugins {
id 'app.opendocument.conanandroidgradleplugin' version '0.9.2' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
delete new File(projectDir, "wvWare/.cxx")
}

group = 'app.opendocument'
version = '1.2.11'

Expand Down
9 changes: 9 additions & 0 deletions wvWare/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,12 @@ if (System.getenv('SIGNING_KEY')) {
sign publishing.publications.release
}
}

// Without removing .cxx dir on cleanup, double gradle clean is erroring out.
// Before removing this workaround, check if "./gradlew assembleDebug; ./gradlew clean; ./gradlew clean" works
tasks.named("clean") {
def dotCxxDir = getLayout().getProjectDirectory().dir(".cxx")
doFirst {
delete dotCxxDir
}
}

0 comments on commit 604ac8f

Please sign in to comment.