From 63386c94a8d935fe55eb6ac3468d4c6cf95451ea Mon Sep 17 00:00:00 2001 From: Jovan Stanisic <64370766+jokoolle-183@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:36:57 +0200 Subject: [PATCH] #271 Fix loading projects and subprojects (#272) * #271 Replaced single project evaluation block with projectsEvaluated block that waits for all projects and subprojects to get evaluated * #271 Changed group name to com.github.jokoolle-183.modules-graph-assert * #271 Reverted group name --- .../module/graph/assertion/ModuleGraphAssertionsPlugin.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugin/src/main/kotlin/com/jraska/module/graph/assertion/ModuleGraphAssertionsPlugin.kt b/plugin/src/main/kotlin/com/jraska/module/graph/assertion/ModuleGraphAssertionsPlugin.kt index ce68b07..a6a3079 100644 --- a/plugin/src/main/kotlin/com/jraska/module/graph/assertion/ModuleGraphAssertionsPlugin.kt +++ b/plugin/src/main/kotlin/com/jraska/module/graph/assertion/ModuleGraphAssertionsPlugin.kt @@ -29,13 +29,11 @@ class ModuleGraphAssertionsPlugin : Plugin { override fun apply(project: Project) { val graphRules = project.extensions.create(GraphRulesExtension::class.java, Api.EXTENSION_ROOT, GraphRulesExtension::class.java) - project.afterEvaluate { + project.gradle.projectsEvaluated { addModulesAssertions(project, graphRules) if (graphRules.assertOnAnyBuild) { - project.gradle.projectsEvaluated { - project.runAssertionsDirectly(graphRules) - } + project.runAssertionsDirectly(graphRules) } } }