From 64592e74a12093161eb2cf175311f8d1a6d4ce07 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Thu, 17 Sep 2026 16:48:33 -0700 Subject: [PATCH 1/2] Document the legacy plugin id removal #3086 stopped publishing the marker for the legacy `com.diffplug.gradle.spotless` id and added a historical capability, both of which can break a consumer's build. Neither was in the changelog. Co-Authored-By: Claude Opus 5 (1M context) --- plugin-gradle/CHANGES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin-gradle/CHANGES.md b/plugin-gradle/CHANGES.md index 130c600938..bcc0d6b753 100644 --- a/plugin-gradle/CHANGES.md +++ b/plugin-gradle/CHANGES.md @@ -16,6 +16,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format ( - Bump default `scalafmt` version `3.8.1` -> `3.11.5`. ([#2173](https://github.com/diffplug/spotless/pull/2173)) - Bump default `google-java-format` version `1.30.0` -> `1.36.1`. ([#3075](https://github.com/diffplug/spotless/pull/3075)) - Bump default `gherkin-utils` version `10.0.0` -> `12.0.2`. ([#2979](https://github.com/diffplug/spotless/pull/2979)) +- **POTENTIALLY BREAKING** We no longer publish a plugin marker for the legacy `com.diffplug.gradle.spotless` id. Builds that still request it now fail with `Plugin [id: 'com.diffplug.gradle.spotless'] was not found` instead of the migration message it used to print. Use `com.diffplug.spotless` instead. ([#3086](https://github.com/diffplug/spotless/pull/3086)) +- **POTENTIALLY BREAKING** `spotless-plugin-gradle` now declares the historical capability `com.diffplug.gradle.spotless:spotless-plugin-gradle`. A build that resolves both this and the pre-4.0 artifact of that name will now fail with a capability conflict rather than silently putting both on the classpath. ([#3086](https://github.com/diffplug/spotless/pull/3086)) ### Fixed - `versionCatalog()` preserves standalone comments at section boundaries and the end of the file. ([#3048](https://github.com/diffplug/spotless/issues/3048)) From 265c38041bd19ce4ec99d37f377d70b5bc46ecfc Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Thu, 17 Sep 2026 17:26:00 -0700 Subject: [PATCH 2/2] One plain entry for the legacy plugin id Drops the capability entry: the declared capability com.diffplug.gradle.spotless:spotless-plugin-gradle never existed as a published module, so it conflicts with nothing and there is nothing for users to act on. The real former coordinates were com.diffplug.gradle.spotless:spotless (1.2.0 through 2.4.1). Co-Authored-By: Claude Opus 5 (1M context) --- plugin-gradle/CHANGES.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin-gradle/CHANGES.md b/plugin-gradle/CHANGES.md index bcc0d6b753..93abd770ec 100644 --- a/plugin-gradle/CHANGES.md +++ b/plugin-gradle/CHANGES.md @@ -16,8 +16,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format ( - Bump default `scalafmt` version `3.8.1` -> `3.11.5`. ([#2173](https://github.com/diffplug/spotless/pull/2173)) - Bump default `google-java-format` version `1.30.0` -> `1.36.1`. ([#3075](https://github.com/diffplug/spotless/pull/3075)) - Bump default `gherkin-utils` version `10.0.0` -> `12.0.2`. ([#2979](https://github.com/diffplug/spotless/pull/2979)) -- **POTENTIALLY BREAKING** We no longer publish a plugin marker for the legacy `com.diffplug.gradle.spotless` id. Builds that still request it now fail with `Plugin [id: 'com.diffplug.gradle.spotless'] was not found` instead of the migration message it used to print. Use `com.diffplug.spotless` instead. ([#3086](https://github.com/diffplug/spotless/pull/3086)) -- **POTENTIALLY BREAKING** `spotless-plugin-gradle` now declares the historical capability `com.diffplug.gradle.spotless:spotless-plugin-gradle`. A build that resolves both this and the pre-4.0 artifact of that name will now fail with a capability conflict rather than silently putting both on the classpath. ([#3086](https://github.com/diffplug/spotless/pull/3086)) +- We no longer publish a plugin marker for the legacy `com.diffplug.gradle.spotless` id, which has been redirecting to `com.diffplug.spotless` since 4.0. Builds that still request it now fail with `Plugin [id: 'com.diffplug.gradle.spotless'] was not found` instead of the migration message. ([#3086](https://github.com/diffplug/spotless/pull/3086)) ### Fixed - `versionCatalog()` preserves standalone comments at section boundaries and the end of the file. ([#3048](https://github.com/diffplug/spotless/issues/3048))