Releases: diffplug/spotless
Releases · diffplug/spotless
Maven Plugin v3.0.0
Changes
- BREAKING Bump the required Java to
17
. (#2375, #2540) - BREAKING Renamed
removeWildcardImports
toforbidWildcardImports
. (#2633) - BREAKING
spotless:install-git-pre-push-hook
task is now always installed in the root.git/hooks
directory by resolving the top-level project base directory. (#2570) - Bump JGit from
6.10.1
to7.3.0
(#2257)- Adds support for worktrees (fixes #1765)
- Bump default
google-java-format
version to latest1.24.0
->1.28.0
. (#2345) - Bump default
gson
version to latest2.13.1
->2.13.2
. (#2615) - Bump default
jackson
version to latest2.19.2
->2.20.0
. (#2606) - Bump default
ktfmt
version to latest0.53
->0.58
(#2613)- BREAKING use
TrailingCommaManagementStrategy
enum instead ofmanageTrailingCommas
boolean configuration option
- BREAKING use
- Bump default
ktlint
version to latest1.5.0
->1.7.1
. (#2555) - Bump default
palantir-java-format
version to latest2.57.0
->2.71.0
.
Fixed
- Fix
spaceBeforeSeparator
in Jackson formatter. (#2103)
Added
Gradle Plugin v8.0.0
Changed
- BREAKING Bump the required Gradle to
7.3
and required Java to17
. (#2375, #2540) - BREAKING Renamed
removeWildcardImports
toforbidWildcardImports
. (#2633) - BREAKING
spotlessInstallGitPrePushHook
task is now installed only on the root project. (#2570) - BREAKING
LintSuppression
now enforces unix-style paths in itssetPath
method. (#2629) - Running
spotlessCheck
with violations unilaterally produces the error messageRun './gradlew spotlessApply' to fix these violations
. (#2592) - Bump JGit from
6.10.1
to7.3.0
(#2257)- Adds support for worktrees (fixes #1765)
- Bump default
google-java-format
version to latest1.24.0
->1.28.0
. (#2345) - Bump default
gson
version to latest2.13.1
->2.13.2
. (#2615) - Bump default
jackson
version to latest2.19.2
->2.20.0
. (#2606) - Bump default
ktfmt
version to latest0.53
->0.58
(#2613)- BREAKING use
TrailingCommaManagementStrategy
enum instead ofmanageTrailingCommas
boolean configuration option
- BREAKING use
- Bump default
ktlint
version to latest1.5.0
->1.7.1
. (#2555) - Bump default
palantir-java-format
version to latest2.57.0
->2.71.0
.
Fixed
- Respect system gitconfig when performing git operations (#2404)
- Fix
spaceBeforeSeparator
in Jackson formatter. (#2103) spotlessInstallGitPrePushHook
is now compatible with configuration cache. (#2570)
Added
- There is now a
forbidRegex(String name, String regex, String lintDetail)
which throws a lint anytime the regex matches. (#2633)
Maven Plugin v2.46.1
Fixed
spotless:install-git-pre-push-hook
didn't work on windows, now fixed. (#2562)
Lib v3.3.1
Fixed
GitPrePushHookInstaller
didn't work on windows, now fixed. (#2562)
Gradle Plugin v7.2.1
Fixed
spotlessInstallGitPrePushHook
didn't work on windows, now fixed. (#2562)
Maven Plugin v2.46.0
Lib v3.3.0
Added
- Allow specifying path to Biome JSON config file directly in
biome
step. Requires biome 2.x. (#2548) GitPrePushHookInstaller
, a reusable library component for installing a Gitpre-push
hook that runs formatter checks. (#2553)- Allow setting Eclipse XML config from a string, not only from files (#2361)
Changed
Gradle Plugin v7.2.0
Added
- Allow specifying path to Biome JSON config file directly in
biome
step. Requires biome 2.x. (#2548) spotlessInstallGitPrePushHook
task, which installs a Gitpre-push
hook to runspotlessCheck
andspotlessApply
. (#2553)- Allow setting Eclipse XML config from a string, not only from files (#2361)
Changed
Maven Plugin v2.45.0
Added
- Support for
idea
(#2020, #2535) - Add support for removing wildcard imports via
removeWildcardImports
step. (#2517)
Fixed
SortPom
disable expandEmptyElements, to avoid empty body warnings. (#2520)- Fix biome formatter for new major release 2.x of biome (#2537)
- Make sure npm-based formatters use the correct
node_modules
directory when running in parallel. (#2542)
Changed
- Bump internal dependencies for npm-based formatters (#2542)
Changed
- scalafmt: enforce version consistency between the version configured in Spotless and the version declared in Scalafmt config file (#2460)
Lib v3.2.0
Added
- Support for
idea
(#2020, #2535) - Add support for removing wildcard imports via
removeWildcardImports
step. (#2517) - scalafmt: enforce version consistency between the version configured in Spotless and the version declared in Scalafmt config file (#2460)
Fixed
SortPom
disable expandEmptyElements, to avoid empty body warnings. (#2520)- Fix biome formatter for new major release 2.x of biome (#2537)
- Make sure npm-based formatters use the correct
node_modules
directory when running in parallel. (#2542)
Changed
- Bump internal dependencies for npm-based formatters (#2542)