Skip to content

Commit

Permalink
#271 Fix loading projects and subprojects (#272)
Browse files Browse the repository at this point in the history
* #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
  • Loading branch information
jokoolle-183 authored Aug 21, 2024
1 parent 0322019 commit 63386c9
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 63386c9

Please sign in to comment.