Skip to content

Stop publishing redirect artifacts at com.diffplug.gradle.spotless #2844

Closed

Description

@liutikas

https://plugins.gradle.org/plugin/com.diffplug.gradle.spotless

It has

Add this plugin to your build using the [plugins DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block):

plugins {
  id("com.diffplug.gradle.spotless") version "8.2.1"
}

if you do that you get:

Caused by: org.gradle.api.GradleException: We have moved from 'com.diffplug.gradle.spotless'
                to 'com.diffplug.spotless'
To migrate:
- Test your build with: id 'com.diffplug.gradle.spotless' version '4.5.1'
- Fix any deprecation warnings (shouldn't be many / any)
- Now you can use:      id 'com.diffplug.spotless' version '5.0.0'

Activity

  1. nedtwigg commented on Jan 30, 2026

    @nedtwigg
    Member

    It's not possible for us to remove the old id from the portal, which is why we always publish to both points (and give a nice error message). But after all these years, it's probably okay for us to stop publishing to the old id.

    I see that the deprecated artifact shows up first in the search. It's first alphabetically, but hopefully we stop publishing it will start to fall.

    Image
  2. changed the title [-]Gradle plugin portal has obsolete plugin id[/-] [+]Stop publishing redirect artifacts at `com.diffplug.gradle.spotless`[/+] on Jan 30, 2026
  3. Pankraz76 commented on Nov 8, 2026

    @Pankraz76

    Is this one already resolved? It looks like #3086 removed the legacy com.diffplug.gradle.spotless plugin marker, and it shipped in plugin-gradle 8.10.3 (CHANGES.md: "We no longer publish a plugin marker for the legacy com.diffplug.gradle.spotless id…").

    The Plugin Portal metadata seems to agree: the com.diffplug.gradle.spotless marker stops at 8.10.2, while com.diffplug.spotless continued with 8.10.3 and 8.11.0. The in-jar redirect (SpotlessPluginRedirect) is still there, so anyone applying the old id from the buildscript classpath still gets the migration message.

    If I'm not missing anything, could this be closed as completed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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