Skip to content

Commit

Permalink
jraska#271 Replaced single project evaluation block with projectsEval…
Browse files Browse the repository at this point in the history
…uated block that waits for all projects and subprojects to get evaluated
  • Loading branch information
jokoolle-183 committed Aug 20, 2024
1 parent ec48fa5 commit 9a2433a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ class ModuleGraphAssertionsPlugin : Plugin<Project> {
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)
}
}
}
Expand Down

0 comments on commit 9a2433a

Please sign in to comment.