1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix the CLEAN dependency.

This commit is contained in:
Cedric Beust 2016-07-30 07:36:12 -07:00
parent 007bb31ee3
commit 8c6e050d3b

View file

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