From ed6656a24b18e561949ec95d447300790bd0fbab Mon Sep 17 00:00:00 2001 From: Shobhit Agarwal Date: Sun, 14 Jan 2024 02:23:22 +0530 Subject: [PATCH] Add gradle task clean (#2185) --- build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index fa9c118c16..cb14b85f9c 100644 --- a/build.gradle +++ b/build.gradle @@ -97,11 +97,13 @@ detekt { basePath = projectDir } -task checkCode(type: GradleBuild) { +tasks.register('checkCode', GradleBuild) { tasks = ['checkstyle', 'lintLocalDebug', 'ktfmtCheck', 'detekt'] } -// TODO(#2183): Add task to remove files in `build` on clean. +tasks.register('clean', Delete) { + delete rootProject.buildDir +} // https://github.com/passsy/gradle-gitVersioner-plugin apply plugin: "com.pascalwelsch.gitversioner"