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

"compile" should run after "clean".

This commit is contained in:
Cedric Beust 2016-04-12 23:44:42 -07:00
parent 1d7ccecb34
commit 853f49ac15

View file

@ -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 { fun taskCompile(project: Project): IncrementalTaskInfo {
// Generate the BuildConfig before invoking sourceDirectories() since that call // Generate the BuildConfig before invoking sourceDirectories() since that call
// might add the buildConfig source directories // might add the buildConfig source directories