Skip to content

Commit a87e27d

Browse files
Update .cxx remover task to reference layout in configure stage, not in action. Required for gradle's configuration-cache
1 parent 04b49d7 commit a87e27d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ dependencies {
172172
// Without removing .cxx dir on cleanup, double gradle clean is erroring out.
173173
// Before removing this workaround, check if "./gradlew assembleDebug; ./gradlew clean; ./gradlew clean" works
174174
tasks.named("clean") {
175+
def dotCxxDir = layout.projectDirectory.dir(".cxx")
175176
doFirst {
176-
delete getLayout().getProjectDirectory().dir(".cxx")
177+
delete dotCxxDir
177178
}
178179
}

0 commit comments

Comments
 (0)