Could not determine the dependencies of task

I’m trying to make my first ever Gradle plugin, But I get the error

* What went wrong:
Execution failed for task ':tasks'.
> Could not determine the dependencies of task ':removeShadedLibs'.

I create the task with the following code:

makeTask("removeShadedLibs", TaskRemoveShadedLibs.class, task ->
    {
        task.setConfig("{MAPPINGS_DIR}/removeClasses.cfg");
        task.setOutJar("{BUILD_DIR}/tmp/jars/unshaded.jar");
    });

and makeTask()

public <T extends Task> T makeTask(String name, Class<T> type, Consumer<T> consumer)
{
    T task = (T) project.task(ImmutableMap.of("name", name, "type", type), name);
    consumer.accept(task);
    return task;
}

Thanks for helping :wink:

You can run with --stacktrace to get more info on what’s going wrong. If that doesn’t help, please provide that stacktrace here.