Skip to content

Add warning about gradle version if too old #682

@nedtwigg

Description

@nedtwigg

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;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions