Skip to content

Tags

Tags

maven/3.12.0

Toggle maven/3.12.0's commit message
### Changes
- Bump default `adocfmt` version `0.3.1` -> `0.3.2`. ([#3180](#3180))
- Bump default `jackson` version `2.22.3` -> `2.22.4`. ([#3146](#3146))
- Bump default `palantir-java-format` version `2.102.0` -> `2.103.0`. ([#3172](#3172))
- Bump default `prince-of-space` version `2.2.0` -> `2.3.1`. ([#3181](#3181))
- Bump default `tabletest-formatter` version `1.1.2` -> `1.1.3`. ([#3167](#3167))
- Bump default `gson` version `2.14.0` -> `2.15.0`. ([#3168](#3168))
- Bump default `jackson` version `2.22.4` -> `2.23.0`. ([#3193](#3193))

### Added
- Add `<dependencyOverrides>` to `<prettier>`, `<eslint>` and `<tsfmt>` to pin transitive npm dependencies via npm `overrides`. ([#2534](#2534))
- Add a `<groupArtifact>` parameter to `<palantirJavaFormat>`. ([#3179](#3179))
- Add a `spotless:report` goal that puts a Spotless page in the Maven site. ([#3175](#3175))  
  List `spotless-maven-plugin` under `<reporting>` and run `mvn site`: the page shows which files need formatting, with a colored diff for each, and their lint problems. It works with `maven-site-plugin` 3.12.1 and 3.20.0 or later.
- Add `<replaceStaticImports>` for Java, which replaces static imports with regular imports and qualified references, such as `Assertions.assertTrue(x)`, using the project's source roots and dependencies to resolve names. Static imports to keep go in `<excludes>`. ([#1379](#1379))
### Fixed
- `<shortenFullyQualifiedTypes/>` now also shortens fully qualified annotation names such as `@com.example.Foo`. ([#3159](#3159))
- GrEclipse no longer leaves a `file%3A...` directory in the working directory. ([#2019](#2019))
- DBeaver SQL formatter no longer prints an `IndexOutOfBoundsException` when a file starts with a keyword like `SET`. ([#1552](#1552))
- DBeaver SQL formatter no longer adds spaces inside backtick-quoted identifiers such as `` `MyCol.1` ``. ([#2250](#2250))
- `<expandWildcardImports>` no longer fails with `Symbol resolution not configured` on records and other syntax newer than Java 11, and leaves files JavaParser cannot validate unchanged. ([#2946](#2946))
- `<removeSemicolons/>` no longer removes semicolons inside dollar-slashy strings (`$/ ... /$`), after escaped triple quotes in multiline strings, or in multi-line `for (init; cond; update)` headers. ([#2780](#2780))
- `<removeUnusedImports>` and `<googleJavaFormat>` no longer remove imports that are only used by links in Markdown doc comments (`///`, JDK 23+). ([#3161](#3161))
- `forbidWildcardImports` no longer reports import statements inside Java text blocks or comments. ([#2997](#2997))

lib/4.12.0

Toggle lib/4.12.0's commit message
### Changes
- Bump default `adocfmt` version `0.3.1` -> `0.3.2`. ([#3180](#3180))
- Bump default `jackson` version `2.22.3` -> `2.22.4`. ([#3146](#3146))
- Bump default `palantir-java-format` version `2.102.0` -> `2.103.0`. ([#3172](#3172))
- Bump default `prince-of-space` version `2.2.0` -> `2.3.1`. ([#3181](#3181))
- Bump default `tabletest-formatter` version `1.1.2` -> `1.1.3`. ([#3167](#3167))
- Bump default `gson` version `2.14.0` -> `2.15.0`. ([#3168](#3168))
- Bump default `jackson` version `2.22.4` -> `2.23.0`. ([#3193](#3193))

### Added
- Add `dependencyOverrides` to the npm-based formatter steps (`PrettierFormatterStep`, `EslintFormatterStep`, `TsFmtFormatterStep`), written to the npm `overrides` field of the generated `package.json` to pin transitive dependencies. ([#2534](#2534))
- Add a `groupArtifact` option to `PalantirJavaFormatStep`. ([#3179](#3179))
- Add `ReplaceStaticImportsStep`, which replaces static imports with regular imports and qualified references, such as `Assertions.assertTrue(x)`. Static imports to keep can be excluded. ([#1379](#1379))
### Fixed
- `shortenFullyQualifiedTypes` now also shortens fully qualified annotation names such as `@com.example.Foo`. ([#3159](#3159))
- GrEclipse no longer leaves a `file%3A...` directory in the working directory. ([#2019](#2019))
- DBeaver SQL formatter no longer prints an `IndexOutOfBoundsException` when a file starts with a keyword like `SET`. ([#1552](#1552))
- DBeaver SQL formatter no longer adds spaces inside backtick-quoted identifiers such as `` `MyCol.1` ``. ([#2250](#2250))
- `ExpandWildcardImportsStep` no longer fails with `Symbol resolution not configured` on records and other syntax newer than Java 11, and leaves files JavaParser cannot validate unchanged. ([#2946](#2946))
- `removeSemicolons()` no longer removes semicolons inside dollar-slashy strings (`$/ ... /$`), after escaped triple quotes in multiline strings, or in multi-line `for (init; cond; update)` headers. ([#2780](#2780))
- `RemoveUnusedImportsStep` and `GoogleJavaFormatStep` no longer remove imports that are only used by links in Markdown doc comments (`///`, JDK 23+). ([#3161](#3161))
- `forbidWildcardImports` no longer reports import statements inside Java text blocks or comments. ([#2997](#2997))

gradle/8.12.0

Toggle gradle/8.12.0's commit message
### Added
- Add `dependencyOverrides(Map)` to `prettier()`, `eslint()` and `tsfmt()` to pin transitive npm dependencies via npm `overrides`. ([#2534](#2534))
- Add `groupArtifact(String)` to `palantirJavaFormat()`. ([#3179](#3179))
- `SpotlessApply` writes a report of the files it rewrote to `build/spotless/<taskName>-changed-files.txt`, configurable via `changedFilesReport`. The report is a task output, so tasks which take it as an input automatically depend on the apply task. ([#2715](#2715))
- Add `replaceStaticImports()` for Java, which replaces static imports with regular imports and qualified references, such as `Assertions.assertTrue(x)`, using the compile classpath to resolve names. Pass the static imports to keep, such as `'org.assertj.core.api.Assertions.*'`. ([#1379](#1379))
### Changes
- Bump default `adocfmt` version `0.3.1` -> `0.3.2`. ([#3180](#3180))
- Bump default `jackson` version `2.22.3` -> `2.22.4`. ([#3146](#3146))
- Bump default `palantir-java-format` version `2.102.0` -> `2.103.0`. ([#3172](#3172))
- Bump default `prince-of-space` version `2.2.0` -> `2.3.1`. ([#3181](#3181))
- Bump default `tabletest-formatter` version `1.1.2` -> `1.1.3`. ([#3167](#3167))
- Bump default `gson` version `2.14.0` -> `2.15.0`. ([#3168](#3168))
- `SpotlessApply` now only reports that it did work (and is otherwise `UP-TO-DATE`) when it actually rewrote a file. ([#2715](#2715))
- Bump default `jackson` version `2.22.4` -> `2.23.0`. ([#3193](#3193))

### Fixed
- `shortenFullyQualifiedTypes()` now also shortens fully qualified annotation names such as `@com.example.Foo`. ([#3159](#3159))
- The README section "Can I apply Spotless to specific files?" no longer documents `-PspotlessFiles`, which the Gradle plugin does not read; it points to `-PspotlessIdeHook` and `ratchetFrom` instead. ([#3183](#3183))
- GrEclipse no longer leaves a `file%3A...` directory in the working directory. ([#2019](#2019))
- DBeaver SQL formatter no longer prints an `IndexOutOfBoundsException` when a file starts with a keyword like `SET`. ([#1552](#1552))
- DBeaver SQL formatter no longer adds spaces inside backtick-quoted identifiers such as `` `MyCol.1` ``. ([#2250](#2250))
- `expandWildcardImports()` no longer fails with `Symbol resolution not configured` on records and other syntax newer than Java 11, and leaves files JavaParser cannot validate unchanged. ([#2946](#2946))
- String `targetExclude` patterns ending in `/**` (e.g. `**/build/**`) are now applied as exclude patterns on String `target`s, so excluded directories are skipped while walking the target instead of walking the whole project directory, which made configuration cache store and reuse scale with the size of the project. ([#3147](#3147))
- `removeSemicolons()` no longer removes semicolons inside dollar-slashy strings (`$/ ... /$`), after escaped triple quotes in multiline strings, or in multi-line `for (init; cond; update)` headers. ([#2780](#2780))
- `removeUnusedImports()` and `googleJavaFormat()` no longer remove imports that are only used by links in Markdown doc comments (`///`, JDK 23+). ([#3161](#3161))
- `forbidWildcardImports` no longer reports import statements inside Java text blocks or comments. ([#2997](#2997))
- `spotlessCheck` no longer fails with `There were 0 lint error(s)` when `spotless-clean` only contains stale files which already match the source on disk. ([#2992](#2992))

maven/3.11.0

Toggle maven/3.11.0's commit message
### Added
- Add `<cleanup>false</cleanup>` to `<googleJavaFormat>` to disable google-java-format's non-whitespace cleanups. ([#3157](#3157))
- Add a `<maxLineLength>` parameter to `<googleJavaFormat>`. ([#3151](#3151))  
  Overrides the 100-column limit prescribed by the GOOGLE and AOSP styles; requires `google-java-format` `2.0.0` or later.
### Changes
- Bump default `google-java-format` version `1.36.1` -> `2.0.0`.  ([#3157](#3157))  
  This version applies some small non-whitespace cleanups by default (removing redundant semicolons, empty annotation parentheses, and parentheses around single lambda parameters), which can be disabled with `<cleanup>false</cleanup>`.

lib/4.11.0

Toggle lib/4.11.0's commit message
### Added
- Add a `cleanup` option to `GoogleJavaFormatStep` to disable google-java-format's non-whitespace cleanups. ([#3157](#3157))
- Add a `maxLineLength` option to `GoogleJavaFormatStep`. ([#3151](#3151))  
  Overrides the 100-column limit prescribed by the GOOGLE and AOSP styles. Requires `google-java-format` `2.0.0` or later, the bug-fixing major release which stabilized the configurable `JavaFormatterOptions.Style` introduced experimentally in `1.37.0` (no `1.38.0` was ever published).
### Changes
- Bump default `google-java-format` version `1.36.1` -> `2.0.0`. ([#3157](#3157))

gradle/8.11.0

Toggle gradle/8.11.0's commit message
### Added
- Add `cleanup(false)` to `googleJavaFormat()` to disable google-java-format's non-whitespace cleanups. ([#3157](#3157))
- Add `maxLineLength(int)` to `googleJavaFormat()`. ([#3151](#3151))  
  Overrides the 100-column limit prescribed by the GOOGLE and AOSP styles; requires `google-java-format` `2.0.0` or later.
### Changes
- Bump default `google-java-format` version `1.36.1` -> `2.0.0`.  ([#3157](#3157))  
  This version applies some small non-whitespace cleanups by default (removing redundant semicolons, empty annotation parentheses, and parentheses around single lambda parameters), which can be disabled with `cleanup(false)`.

maven/3.10.4

Toggle maven/3.10.4's commit message
### Changes
- Bump default `eclipse` version from `4.40` to `4.41`.
- Bump default `gherkin` version `42.0.0` -> `42.0.1`. ([#3088](#3088))
- Bump default `jackson` version `2.22.2` -> `2.22.3`. ([#3101](#3101))
- Bump default `palantir-java-format` version `2.98.0` -> `2.102.0`. ([#3103](#3103), [#3132](#3132))
- Bump default `mockito-core` version `5.23.0` -> `5.24.0`. ([#3106](#3106))
- Bump default `greclipse` version to latest `4.40` -> `4.41`. ([#3123](#3123))
- Bump default `ktfmt` version `0.64` -> `0.65`. ([#3135](#3135))  
  Which moved to the `org.jetbrains.kotlinx:ktfmt` coordinate and `org.jetbrains.kotlinx.ktfmt` package. Older versions are still supported.
- Bump default `palantir-java-format` version `2.99.0` -> `2.102.0`. ([#3132](#3132))

### Fixed
- Migrate Plexus component injection to JSR-330 and Maven parameter. ([#3122](#3122))
- `shortenFullyQualifiedTypes` leaves a qualified name alone when the enclosing type extends or implements a type that is not in the same file, so an inherited member type cannot take the simple name. ([#3117](#3117))
- `expandWildcardImports` no longer drops the import of a type that is only used to qualify a static member (such as `Collections.sort(list)` or `TimeUnit.SECONDS`), or the static import of a field or enum constant (such as `PI` from `import static java.lang.Math.*`), which produced code that did not compile. ([#2833](#2833))

lib/4.10.4

Toggle lib/4.10.4's commit message
### Changes
- Bump default Eclipse JDT formatter version from `4.40` to `4.41`.
- GitPrePushHookInstaller takes optional parameter for pre push hook directory, instead of always writing to .git/hooks. ([#3115](#3115)
- Bump default `gherkin` version `42.0.0` -> `42.0.1`. ([#3088](#3088))
- Bump default `jackson` version `2.22.2` -> `2.22.3`. ([#3101](#3101))
- Bump default `palantir-java-format` version `2.98.0` -> `2.102.0`. ([#3103](#3103), [#3132](#3132))
- Bump default `mockito-core` version `5.23.0` -> `5.24.0`. ([#3106](#3106))
- Bump default `greclipse` version to latest `4.40` -> `4.41`. ([#3123](#3123))
- Bump default `ktfmt` version `0.64` -> `0.65`. ([#3135](#3135))  
  Which moved to the `org.jetbrains.kotlinx:ktfmt` coordinate and `org.jetbrains.kotlinx.ktfmt` package. Older versions are still supported.
- Bump default `palantir-java-format` version `2.99.0` -> `2.102.0`. ([#3132](#3132))

### Fixed
- `shortenFullyQualifiedTypes` no longer corrupts a method reference on a field/variable (`localVar.field::method`), which JavaParser parses as a type-shaped scope; such scopes now go through the same known-package / minimum-depth heuristic as other expression scopes before being treated as fully-qualified types. ([#3133](#3133))
- `shortenFullyQualifiedTypes` leaves a qualified name alone when the enclosing type extends or implements a type that is not in the same file, so an inherited member type cannot take the simple name. ([#3117](#3117))
- `expandWildcardImports` no longer drops the import of a type that is only used to qualify a static member (such as `Collections.sort(list)` or `TimeUnit.SECONDS`), or the static import of a field or enum constant (such as `PI` from `import static java.lang.Math.*`), which produced code that did not compile. ([#2833](#2833))

gradle/8.10.4

Toggle gradle/8.10.4's commit message
### Changes
- Bump default `eclipse` version from `4.40` to `4.41`.
- spotlessInstallGitPrePushHook now respects Git’s core.hooksPath when installing the pre-push hook, instead of always writing to .git/hooks. ([#3115](#3115)
- Bump default `gherkin` version `42.0.0` -> `42.0.1`. ([#3088](#3088))
- Bump default `jackson` version `2.22.2` -> `2.22.3`. ([#3101](#3101))
- Bump default `palantir-java-format` version `2.98.0` -> `2.102.0`. ([#3103](#3103), [#3132](#3132))
- Bump default `mockito-core` version `5.23.0` -> `5.24.0`. ([#3106](#3106))
- Bump default `greclipse` version to latest `4.40` -> `4.41`. ([#3123](#3123))
- Bump default `ktfmt` version `0.64` -> `0.65`. ([#3135](#3135))  
  Which moved to the `org.jetbrains.kotlinx:ktfmt` coordinate and `org.jetbrains.kotlinx.ktfmt` package. Older versions are still supported.
- Bump default `palantir-java-format` version `2.99.0` -> `2.102.0`. ([#3132](#3132))

### Fixed
- `shortenFullyQualifiedTypes` leaves a qualified name alone when the enclosing type extends or implements a type that is not in the same file, so an inherited member type cannot take the simple name. ([#3117](#3117))
- `expandWildcardImports` no longer drops the import of a type that is only used to qualify a static member (such as `Collections.sort(list)` or `TimeUnit.SECONDS`), or the static import of a field or enum constant (such as `PI` from `import static java.lang.Math.*`), which produced code that did not compile. ([#2833](#2833))

maven/3.10.3

Toggle maven/3.10.3's commit message
### Changes
- Generate formatter defaults from version catalog. ([#3045](#3045))
- Bump default `gson` version `2.13.2` -> `2.14.0`. ([#3045](#3045))
- Bump default `zjsonpatch` version `0.4.14` -> `0.4.16`. ([#3045](#3045))
- Bump default `jackson-dataformat-yaml` version `2.14.1` -> `2.20.1`. ([#3045](#3045))
- Bump default `ktfmt` version `0.63` -> `0.64`. ([2988](#2988))
- Bump default `cleanthat` version `2.25` -> `2.26`. ([#2882](#2882))
- Bump default `jackson` version `2.20.1` -> `2.22.2`. ([#2819](#2819))
- Bump default `javaparser` version `3.27.1` -> `3.28.2`. ([#3065](#3065))
- Bump default `palantir-java-format` version `2.80.0` -> `2.98.0`. ([#3068](#3068))
- Bump default `scalafmt` version `3.8.1` -> `3.11.5`. ([#2173](#2173))
- Bump default `google-java-format` version `1.30.0` -> `1.36.1`. ([#3075](#3075))
- Bump default `gherkin-utils` version `10.0.0` -> `12.0.2`. ([#2979](#2979))

### Fixed
- Fix release signing by using Gradle's required eight-digit signing subkey ID. ([#3105](#3105))
- Fix race when creating the npm install cache directory. (([#3096](#3096))
- GrEclipse no longer emits expected OSGi and nested-jar warnings during initialization. ([#2445](#2445))
- `typescript` `prettier()` no longer emits a warning when its parser is already set to `typescript`. ([#3098](#3098))
- `<versionCatalog>` preserves standalone comments at section boundaries and the end of the file. ([#3048](#3048))
- `<versionCatalog>` preserves entries when comments contain unmatched brackets, preserves commas inside quoted strings, and keeps significant line boundaries in multiline entries. ([#3042](#3042))
- `<versionCatalog>` now reports unfinished entries as lints at their starting line. These fail formatting by default, so upgrading may expose catalog errors that previously caused silent data loss. ([#3042](#3042))
- Eclipse JDT formatter step no longer fails with `NoClassDefFoundError` or `NoSuchMethodError` when lombok is active as a JVM agent (e.g. `-javaagent:lombok.jar` in Eclipse/VS Code/Cursor). ([#2795](#2795))