github diffplug/spotless lib/4.12.0
Lib v4.12.0

22 minutes ago

Changes

  • Bump default adocfmt version 0.3.1 -> 0.3.2. (#3180)
  • Bump default jackson version 2.22.3 -> 2.22.4. (#3146)
  • Bump default palantir-java-format version 2.102.0 -> 2.103.0. (#3172)
  • Bump default prince-of-space version 2.2.0 -> 2.3.1. (#3181)
  • Bump default tabletest-formatter version 1.1.2 -> 1.1.3. (#3167)
  • Bump default gson version 2.14.0 -> 2.15.0. (#3168)
  • Bump default jackson version 2.22.4 -> 2.23.0. (#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)
  • Add a groupArtifact option to PalantirJavaFormatStep. (#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)

Fixed

  • shortenFullyQualifiedTypes now also shortens fully qualified annotation names such as @com.example.Foo. (#3159)
  • GrEclipse no longer leaves a file%3A... directory in the working directory. (#2019)
  • DBeaver SQL formatter no longer prints an IndexOutOfBoundsException when a file starts with a keyword like SET. (#1552)
  • DBeaver SQL formatter no longer adds spaces inside backtick-quoted identifiers such as `MyCol.1`. (#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)
  • 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)
  • RemoveUnusedImportsStep and GoogleJavaFormatStep no longer remove imports that are only used by links in Markdown doc comments (///, JDK 23+). (#3161)
  • forbidWildcardImports no longer reports import statements inside Java text blocks or comments. (#2997)

Don't miss a new spotless release

NewReleases is sending notifications on new releases.