Releases: diffplug/spotless
Releases Β· diffplug/spotless
Maven Plugin v3.2.0
Added
- Add the ability to specify a wildcard version (
*) for external formatter executables. (#2757)
Changes
- Dramatic (~100x) performance improvement when using git
ratchetFrom. (#2805)
Fixed
- [fix]
NPEdue to workingTreeIterator being null for git ignored files. #911 (#2771) - Prevent race conditions when multiple npm-based formatters launch the server process simultaneously while sharing the same
node_modulesdirectory. (#2786)
Changes
Lib v4.2.0
Added
- Add a
expandWildcardImportsAPI for java (#2679) - Add the ability to specify a wildcard version (
*) for external formatter executables. (#2757)
Fixed
- Prevent race conditions when multiple npm-based formatters launch the server process simultaneously while sharing the same
node_modulesdirectory. (#2786) - Git ratchet no longer throws an error with Git worktrees. (#2779)
Changes
Gradle Plugin v8.2.0
Added
- Add a
expandWildcardImportsAPI for java (#2679) - Add the ability to specify a wildcard version (
*) for external formatter executables. (#2757) - Add support for passing multiple file paths using the -PspotlessIdeHook option. (#2774)
Fixed
- configuration cache for groovy. (#2797)
- [fix]
NPEdue to workingTreeIterator being null for git ignored files. #911 (#2771) - Prevent race conditions when multiple npm-based formatters launch the server process simultaneously while sharing the same
node_modulesdirectory. (#2786)
Changes
Maven Plugin v3.1.0
Changes
- Bump default
ktfmtversion to latest0.58->0.59. (#2681 - Bump default
jacksonversion to latest2.20.0->2.20.1. (#2730) - Bump default
cleanthatversion to latest2.23->2.24. (#2620) - POTENTIALLY BREAKING Removed support for
ktlintversions below 1.0. (#2711)
Fixed
- Use absolute path in the git pre push hook
- palantirJavaFormat is no longer arbitrarily set to outdated versions on Java 17, latest available version is always used (#2686 fixes #2685)
Added
<forbidModuleImports>API for java (#2679)
Lib v4.1.0
Changes
- Bump default
ktfmtversion to latest0.58->0.59. (#2681 - Bump default
jacksonversion to latest2.20.0->2.20.1. (#2730) - Bump default
cleanthatversion to latest2.23->2.24. (#2620) - POTENTIALLY BREAKING Removed support for
ktlintversions below 1.0. (#2711)
Fixed
- palantirJavaFormat is no longer arbitrarily set to outdated versions on Java 17, latest available version is always used (#2686 fixes #2685)
Added
Gradle Plugin v8.1.0
Changes
- Bump default
ktfmtversion to latest0.58->0.59. (#2681 - Bump default
jacksonversion to latest2.20.0->2.20.1. (#2730) - Bump default
cleanthatversion to latest2.23->2.24. (#2620) - POTENTIALLY BREAKING Removed support for
ktlintversions below 1.0. (#2711)
Fixed
- Tasks were being eagerly instantiated, now avoided using TaskProviders. #2719
- POTENTIALLY BREAKING Bump minimum supported Gradle version from 7.3 to 8.1. #2719
- Use absolute path in the git pre push hook.
- palantirJavaFormat is no longer arbitrarily set to outdated versions on Java 17, latest available version is always used (#2686 fixes #2685)
Added
Maven Plugin v3.0.0
Changes
- BREAKING Bump the required Java to
17. (#2375, #2540) - BREAKING Renamed
removeWildcardImportstoforbidWildcardImports. (#2633) - BREAKING
spotless:install-git-pre-push-hooktask is now always installed in the root.git/hooksdirectory by resolving the top-level project base directory. (#2570) - Bump JGit from
6.10.1to7.3.0(#2257)- Adds support for worktrees (fixes #1765)
- Bump default
google-java-formatversion to latest1.24.0->1.28.0. (#2345) - Bump default
gsonversion to latest2.13.1->2.13.2. (#2615) - Bump default
jacksonversion to latest2.19.2->2.20.0. (#2606) - Bump default
ktfmtversion to latest0.53->0.58(#2613)- BREAKING use
TrailingCommaManagementStrategyenum instead ofmanageTrailingCommasboolean configuration option
- BREAKING use
- Bump default
ktlintversion to latest1.5.0->1.7.1. (#2555) - Bump default
palantir-java-formatversion to latest2.57.0->2.71.0.
Fixed
- Fix
spaceBeforeSeparatorin Jackson formatter. (#2103)
Added
Gradle Plugin v8.0.0
Changed
- BREAKING Bump the required Gradle to
7.3and required Java to17. (#2375, #2540) - BREAKING Renamed
removeWildcardImportstoforbidWildcardImports. (#2633) - BREAKING
spotlessInstallGitPrePushHooktask is now installed only on the root project. (#2570) - BREAKING
LintSuppressionnow enforces unix-style paths in itssetPathmethod. (#2629) - Running
spotlessCheckwith violations unilaterally produces the error messageRun './gradlew spotlessApply' to fix these violations. (#2592) - Bump JGit from
6.10.1to7.3.0(#2257)- Adds support for worktrees (fixes #1765)
- Bump default
google-java-formatversion to latest1.24.0->1.28.0. (#2345) - Bump default
gsonversion to latest2.13.1->2.13.2. (#2615) - Bump default
jacksonversion to latest2.19.2->2.20.0. (#2606) - Bump default
ktfmtversion to latest0.53->0.58(#2613)- BREAKING use
TrailingCommaManagementStrategyenum instead ofmanageTrailingCommasboolean configuration option
- BREAKING use
- Bump default
ktlintversion to latest1.5.0->1.7.1. (#2555) - Bump default
palantir-java-formatversion to latest2.57.0->2.71.0.
Fixed
- Respect system gitconfig when performing git operations (#2404)
- Fix
spaceBeforeSeparatorin Jackson formatter. (#2103) spotlessInstallGitPrePushHookis 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-hookdidn't work on windows, now fixed. (#2562)
Lib v3.3.1
Fixed
GitPrePushHookInstallerdidn't work on windows, now fixed. (#2562)