Skip to content

Commit 3557f57

Browse files
committed
Every task should depend on RegisterDependenciesTask now, since it doesn't do anything and if it ever does do something it will be surpising if it's just some tasks.
1 parent de2e1ec commit 3557f57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugin-gradle/src/main/java/com/diffplug/gradle/spotless/FormatExtension.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,7 @@ protected void setupTask(SpotlessTask task) {
733733
}
734734
task.setSteps(steps);
735735
task.setLineEndingsPolicy(getLineEndings().createPolicy(getProject().getProjectDir(), () -> totalTarget));
736-
if (spotless.project != spotless.project.getRootProject()) {
737-
spotless.getRegisterDependenciesTask().hookSubprojectTask(task);
738-
}
736+
spotless.getRegisterDependenciesTask().hookSubprojectTask(task);
739737
if (getRatchetFrom() != null) {
740738
task.setupRatchet(getRatchetFrom());
741739
}

0 commit comments

Comments
 (0)