From 853f49ac1533508caf7bc27542ff45ee69ea55c8 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 12 Apr 2016 23:44:42 -0700 Subject: [PATCH] "compile" should run after "clean". --- .../main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt index 1466e2e2..93a4f5ab 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt @@ -155,7 +155,8 @@ open class JvmCompilerPlugin @Inject constructor( ) } - @IncrementalTask(name = JvmCompilerPlugin.TASK_COMPILE, description = "Compile the project") + @IncrementalTask(name = JvmCompilerPlugin.TASK_COMPILE, description = "Compile the project", + runAfter = arrayOf(TASK_CLEAN)) fun taskCompile(project: Project): IncrementalTaskInfo { // Generate the BuildConfig before invoking sourceDirectories() since that call // might add the buildConfig source directories