From 466b8e51d0a8037027f5f6be7a8b9869f3e3b975 Mon Sep 17 00:00:00 2001 From: Brady Svedin Date: Tue, 12 Nov 2024 12:16:48 -0700 Subject: [PATCH] GenerateAutoRoutes dependency fix --- buildSrc/src/main/kotlin/KiteUiPlugin.kt | 2 +- gradle-plugin/src/main/kotlin/KiteUiPlugin.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/KiteUiPlugin.kt b/buildSrc/src/main/kotlin/KiteUiPlugin.kt index 7025a918..8c45f30e 100644 --- a/buildSrc/src/main/kotlin/KiteUiPlugin.kt +++ b/buildSrc/src/main/kotlin/KiteUiPlugin.kt @@ -172,7 +172,7 @@ class KiteUiPlugin : Plugin { generateAutoroutes(sources, out) } afterEvaluate { - tasks.findByName("compileKotlinMetadata")?.dependsOn(task) + tasks.filter { it.name.contains("compileKotlin") }.forEach { it.dependsOn(task) } } } diff --git a/gradle-plugin/src/main/kotlin/KiteUiPlugin.kt b/gradle-plugin/src/main/kotlin/KiteUiPlugin.kt index 7025a918..8c45f30e 100644 --- a/gradle-plugin/src/main/kotlin/KiteUiPlugin.kt +++ b/gradle-plugin/src/main/kotlin/KiteUiPlugin.kt @@ -172,7 +172,7 @@ class KiteUiPlugin : Plugin { generateAutoroutes(sources, out) } afterEvaluate { - tasks.findByName("compileKotlinMetadata")?.dependsOn(task) + tasks.filter { it.name.contains("compileKotlin") }.forEach { it.dependsOn(task) } } }