From 7398f9e4e0e2057c367c29df78369d84b72d54bc Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Wed, 13 Dec 2023 13:35:53 +0000 Subject: [PATCH] [K/N][perf] Return doLast This fixes failures in performance builds caused by the KT-MR-13291 "Update Gradle to 8.4" doLast { } block here is necessary as soon as it should be run during the task execution, while without it is a configuration time. Performance builds invoke Gradle several times with different tasks and parameters. The change in the mentioned MR made one of the invocations remove the nativeReports.json file produced earlier. Merge-request: KT-MR-13496 Merged-by: Pavel Punegov --- kotlin-native/performance/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kotlin-native/performance/build.gradle b/kotlin-native/performance/build.gradle index 0c9bea75bb2..a957fb65685 100644 --- a/kotlin-native/performance/build.gradle +++ b/kotlin-native/performance/build.gradle @@ -121,7 +121,9 @@ task clean { dependsOn "${it.path}:clean" } } - delete(layout.buildDirectory) + doLast { + delete(layout.buildDirectory) + } } defaultTasks 'konanRun'