From a82966afe1e2357cf468eac44fe902e3992e86ca Mon Sep 17 00:00:00 2001 From: todayama_r <13657682+Corvus400@users.noreply.github.com> Date: Fri, 23 Aug 2024 04:00:52 +0900 Subject: [PATCH] :wrench: Addressed an issue where Kover fails to execute. https://github.com/DroidKaigi/conference-app-2024/issues/485#issuecomment-2304251937 --- .../droidkaigi/confsched/primitive/KoverEntryPointPlugin.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-logic/src/main/kotlin/io/github/droidkaigi/confsched/primitive/KoverEntryPointPlugin.kt b/build-logic/src/main/kotlin/io/github/droidkaigi/confsched/primitive/KoverEntryPointPlugin.kt index cdcb975a8..07f0cf2cc 100644 --- a/build-logic/src/main/kotlin/io/github/droidkaigi/confsched/primitive/KoverEntryPointPlugin.kt +++ b/build-logic/src/main/kotlin/io/github/droidkaigi/confsched/primitive/KoverEntryPointPlugin.kt @@ -13,7 +13,10 @@ class KoverEntryPointPlugin : Plugin { rootProject.subprojects { if (this@subprojects.name == target.name) return@subprojects - this@subprojects.pluginManager.apply(koverPlugin) + // https://github.com/DroidKaigi/conference-app-2024/issues/485#issuecomment-2304251937 + this@subprojects.beforeEvaluate { // wrap with beforeEvaluate + this@subprojects.pluginManager.apply(koverPlugin) + } target.dependencies.add("kover", this@subprojects) }