mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
parent
7d163310da
commit
0807053d5c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
java.io.File(project.directory, project.buildDirectory).let { dir ->
|
||||
if (!dir.deleteRecursively()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue