Skip to content

Spotless plugin-gradle "modern" #600

Closed
@nedtwigg

Description

@nedtwigg

Currently, the plugin id for Spotless is com.diffplug.gradle.spotless and it is backward-compatible all the way to Gradle 2.x. Soon, it will cohabitate with com.diffplug.spotless, which will require Gradle 5.4+, drops all deprecated code, and adopts all latest-available Gradle APIs. If your build completes without warnings on the old id, then all you'll need to do is swap the new id with no further changes.

It will probably be some weeks/months before com.diffplug.spotless is ready. In the meantime, if you specify -PspotlessModern=true, then you'll be using the new plugin already. We are currently running our test suite using this flag, to ensure that the transition is seamless. (PR #598)

The whole point of Spotless is that formatting doesn't matter, so it follows that code formatting tools really don't matter. This is a unique opportunity to drop confusing features, but anything that gets dropped needs to have a very clear migration path, or else we'll just keep supporting it at the new id, likely forever.

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