1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00
Always run clean before compile and assemble.
This commit is contained in:
Cedric Beust 2016-03-28 18:42:02 -07:00
parent 7d163310da
commit 0807053d5c

View file

@ -98,7 +98,7 @@ open class JvmCompilerPlugin @Inject constructor(
} }
} }
@Task(name = TASK_CLEAN, description = "Clean the project") @Task(name = TASK_CLEAN, description = "Clean the project", runBefore = arrayOf(TASK_COMPILE))
fun taskClean(project: Project): TaskResult { fun taskClean(project: Project): TaskResult {
java.io.File(project.directory, project.buildDirectory).let { dir -> java.io.File(project.directory, project.buildDirectory).let { dir ->
if (!dir.deleteRecursively()) { if (!dir.deleteRecursively()) {