From adcff8dcc526258462ec6338cb0ebdd67775e4a5 Mon Sep 17 00:00:00 2001 From: Alex Endfinger Date: Sun, 10 Jul 2022 18:20:38 -0400 Subject: [PATCH] Fix problem where concrete root project may not be found if the hierarchy is deep enough. --- src/main/kotlin/lgbt/mystic/foundation/concrete/extensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/lgbt/mystic/foundation/concrete/extensions.kt b/src/main/kotlin/lgbt/mystic/foundation/concrete/extensions.kt index 5f2eb40..9af5881 100644 --- a/src/main/kotlin/lgbt/mystic/foundation/concrete/extensions.kt +++ b/src/main/kotlin/lgbt/mystic/foundation/concrete/extensions.kt @@ -40,7 +40,7 @@ internal val Project.concreteRootProject: Project } if (parent != null) { - return parent!! + return parent!!.concreteRootProject } throw RuntimeException("Failed to find concrete root. Did you apply the concrete root plugin?")