Skip to content

Commit

Permalink
Revert projectdir property set
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Lehmann authored and Julius Lehmann committed Sep 27, 2024
1 parent dcc227e commit 492977e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ protected void createFormatTasks(String name, FormatExtension formatExtension) {
task.setGroup(TASK_GROUP);
// clean removes the SpotlessCache, so we have to run after clean
task.mustRunAfter(BasePlugin.CLEAN_TASK_NAME);
task.getProjectDir().set(project.getProjectDir());
});
project.afterEvaluate(unused -> {
spotlessTask.configure(task -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void init(Provider<SpotlessTaskService> service) {
taskServiceProvider = service;
SpotlessTaskService.usesServiceTolerateTestFailure(this, service);
getTaskService().set(service);
getProjectDir().set(getProject().getProjectDir());
}

// this field is stupid, but we need it, see https://github.com/diffplug/spotless/issues/1260
Expand Down

0 comments on commit 492977e

Please sign in to comment.