In Spotless 5.0, we bumped the minimum Gradle version from 2.x to 5.4+. We should add a warning if the user's version is too old. The error that users get now is cryptic:
A problem occurred evaluating root project 'foo'.
> Failed to apply plugin [id 'com.diffplug.spotless']
> Could not create an instance of type com.diffplug.gradle.spotless.SpotlessExtensionImpl_Decorated.
> org.gradle.api.tasks.TaskContainer.register(Ljava/lang/String;Lorg/gradle/api/Action;)Lorg/gradle/api/tasks/TaskProvider;
In Spotless 5.0, we bumped the minimum Gradle version from
2.xto5.4+. We should add a warning if the user's version is too old. The error that users get now is cryptic: