From 3c39e04e20e7114d5d6ec56bac166366cea89814 Mon Sep 17 00:00:00 2001 From: Sinuhe Jaime Date: Mon, 14 Oct 2019 02:38:29 -0500 Subject: [PATCH] The 'clean' task is already present The new added custom task ':clean' is redundant as the project itself has a configuration already set for cleaning the project. The new task only adds the posibility of being called with './gradlew :clean' instead of './gradlew clean' issue with this custom task is that it only clears the 'rootProject.buildDir' but currently the project has four build directories: * app/build * buildSrc/build * data/build * baseui/build These directories should be cleaned on every call of the clean task and adding a new task for it seems redundant --- build.gradle.kts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b365f8b..dd566a4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -33,11 +33,6 @@ tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } -task("clean") { - group = "custom" - description = "Delete directory build" - delete(rootProject.buildDir) -} tasks.register("hello") { group = "custom" description = "Hello World task - useful to solve build problems"