Skip to content

Commit 0c2c589

Browse files
authored
Revert "#271 Fix loading projects and subprojects (#272)" (#279)
This reverts commit 63386c9.
1 parent 2549022 commit 0c2c589

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/src/main/kotlin/com/jraska/module/graph/assertion/ModuleGraphAssertionsPlugin.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ class ModuleGraphAssertionsPlugin : Plugin<Project> {
2929
override fun apply(project: Project) {
3030
val graphRules = project.extensions.create(GraphRulesExtension::class.java, Api.EXTENSION_ROOT, GraphRulesExtension::class.java)
3131

32-
project.gradle.projectsEvaluated {
32+
project.afterEvaluate {
3333
addModulesAssertions(project, graphRules)
3434

3535
if (graphRules.assertOnAnyBuild) {
36-
project.runAssertionsDirectly(graphRules)
36+
project.gradle.projectsEvaluated {
37+
project.runAssertionsDirectly(graphRules)
38+
}
3739
}
3840
}
3941
}

0 commit comments

Comments
 (0)