Skip to content

Commit 853ac08

Browse files
committed
'shouldRunAfter' -> 'mustRunAfter'
'shouldRunAfter' has no effect if tasks can run in parallel and hence is too weak with configuration cache enabled.
1 parent 340ad0d commit 853ac08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gradlex/javamodule/dependencies/internal/bridges/DependencyAnalysisBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public static void registerDependencyAnalysisPostProcessingTask(Project project,
5555
.registerPostProcessingTask(checkModuleDirectivesScope);
5656

5757
checkAllModuleInfo.configure(t -> t.dependsOn(checkModuleDirectivesScope));
58-
tasks.withType(ModuleDirectivesOrderingCheck.class).configureEach(t -> t.shouldRunAfter(checkModuleDirectivesScope));
58+
tasks.withType(ModuleDirectivesOrderingCheck.class).configureEach(t -> t.mustRunAfter(checkModuleDirectivesScope));
5959
}
6060
}

0 commit comments

Comments
 (0)