[Gradle] KotlinPluginLifecycle: Do not enter AfterBuildscriptEvaluate stage on failures
KT-58275
This commit is contained in:
committed by
Space Team
parent
b437c3e0e9
commit
c05b86dc7c
+8
@@ -451,6 +451,14 @@ private class KotlinPluginLifecycleImpl(override val project: Project) : KotlinP
|
||||
loopIfNecessary()
|
||||
|
||||
project.whenEvaluated {
|
||||
/* Check for failures happening during buildscript evaluation */
|
||||
project.failures.let { failures ->
|
||||
if (failures.isNotEmpty()) {
|
||||
finishWithFailures(failures)
|
||||
return@whenEvaluated
|
||||
}
|
||||
}
|
||||
|
||||
assert(enqueuedActions.getValue(stage).isEmpty()) { "Expected empty queue from '$stage'" }
|
||||
stage = stage.nextOrThrow
|
||||
executeCurrentStageAndScheduleNext()
|
||||
|
||||
Reference in New Issue
Block a user