chore(deps): update dependency com.diffplug.spotless:spotless-maven-plugin to v2.44.3
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| com.diffplug.spotless:spotless-maven-plugin | build | minor |
2.21.0 -> 2.44.3
|
Release Notes
diffplug/spotless (com.diffplug.spotless:spotless-maven-plugin)
v2.44.0
Added
- New static method to
DiffMessageFormatterwhich allows to retrieve diffs with their line numbers (#1960) - Gradle - Support for formatting shell scripts via shfmt. (#1994)
Fixed
- Fix empty files with biome >= 1.5.0 when formatting files that are in the ignore list of the biome configuration file. (#1989 fixes #1987)
- Fix a regression in BufStep where the same arguments were being provided to every
bufinvocation. (#1976)
Changed
- Use palantir-java-format 2.39.0 on Java 21. (#1948)
- Bump default
ktlintversion to latest1.0.1->1.1.1. (#1973) - Bump default
googleJavaFormatversion to latest1.18.1->1.19.2. (#1971) - Bump default
diktatversion to latest1.2.5->2.0.0. (#1972)
v2.43.0
Added
- Support custom rule sets for Ktlint. (#1896)
Fixed
Changed
- Bump default
ktlintversion to latest1.0.0->1.0.1. (#1855) - Add a Step to remove semicolons from Groovy files. (#1881)
v2.42.0
Added
- Support for biome. The Rome project was renamed to Biome.
The configuration is still the same, but you should switch to the new
biometag / function and adjust the version accordingly. (#1804). - Support for
google-java-format'sskip-javadoc-formattingoption. (#1793) - Support configuration of mirrors for P2 repositories in Maven DSL (#1697).
- New line endings mode
GIT_ATTRIBUTES_FAST_ALLSAME. (#1838)
Fixed
- Fix support for plugins when using Prettier version
3.0.0and newer. (#1802) - Fix configuration cache issue around
external process started '/usr/bin/git --version'. (#1806)
Changed
- Bump default
flexmarkversion to latest0.64.0->0.64.8. (#1801) - Bump default
ktlintversion to latest0.50.0->1.0.0. (#1808)
v2.41.0
Added
- Add a
jsonPatchstep tojsonformatter configurations. This allows patching of JSON documents using JSON Patches. (#1753) - Support GJF own import order. (#1780)
Fixed
- Use latest versions of popular style guides for
eslinttests to fix failinguseEslintXoStandardRulestest. (#1761, #1756) - Add support for
prettierversion3.0.0and newer. (#1760, #1751) - Fix npm install calls when npm cache is not up-to-date. (#1760, #1750)
Changed
- Bump default
eslintversion to latest8.31.0->8.45.0(#1761) - Bump default
prettierversion to latest (v2)2.8.1->2.8.8. (#1760) - Bump default
greclipseversion to latest4.27->4.28. (#1775)
v2.40.0
Added
- Added support for Protobuf formatting based on Buf. (#1208)
-
enum OnMatch { INCLUDE, EXCLUDE }so thatFormatterStep.filterByContentcan not only include based on the pattern but also exclude. (#1749)
Fixed
- Update documented default
semanticSorttofalse. (#1728)
Changed
- Bump default
cleanthatversion to latest2.13->2.17. (#1734) - Bump default
ktlintversion to latest0.49.1->0.50.0. (#1741)- Dropped support for
ktlint 0.47.xfollowing our policy of supporting two breaking changes at a time. - Dropped support for deprecated
useExperimentalparameter in favor of thektlint_experimentalproperty.
- Dropped support for
v2.39.0
Added
-
Jvm.Supportnow accepts-SNAPSHOTversions, treated as the non-SNAPSHOT. (#1583) - Support Rome as a formatter for JavaScript and TypeScript code. Adds a new
romestep tojavascriptandtypescriptformatter configurations. (#1663) - Add semantics-aware Java import ordering (i.e. sort by package, then class, then member). (#522)
Fixed
- Fixed a regression which changed the import sorting order in
googleJavaFormatintroduced in2.38.0. (#1680) - Equo-based formatters now work on platforms unsupported by Eclipse such as PowerPC (fixes durian-swt#20)
- When P2 download fails, indicate the responsible formatter. (#1698)
Changed
- Equo-based formatters now download metadata to
~/.m2/repository/dev/equo/p2-datarather than~/.equo, and for CI machines without a home directory the p2 data goes to$GRADLE_USER_HOME/caches/p2-data. (#1714) - Bump default
googleJavaFormatversion to latest1.16.0->1.17.0. (#1710) - Bump default
ktfmtversion to latest0.43->0.44. (#1691) - Bump default
ktlintversion to latest0.48.2->0.49.1. (#1696)- Dropped support for
ktlint 0.46.xfollowing our policy of supporting two breaking changes at a time.
- Dropped support for
- Bump default
sortpomversion to latest3.0.0->3.2.1. (#1675)
v2.38.0
Added
- Support configuration of mirrors for P2 repositories in
EquoBasedStepBuilder(#1629). - The
styleoption in Palantir Java Format (#1654). - Added formatter for Gherkin feature files (#1649).
Changed
-
POTENTIALLY BREAKING Converted
googleJavaFormatto a compile-only dependency and drop support for versions <1.8. (#1630) - Bump default
cleanthatversion to latest2.6->2.13. (#1589 and #1661) - Bump default
diktatversion1.2.4.2->1.2.5. (#1631) - Bump default
flexmarkversion0.62.2->0.64.0. (#1302) - Bump default
googleJavaFormatversion1.15.0->1.16.0. (#1630) - Bump default
scalafmtversion3.7.1->3.7.3. (#1584) - Bump default Eclipse formatters for the 2023-03 release. (#1662)
- JDT and GrEclipse
4.26->4.27- Improve GrEclipse error reporting. (#1660)
- CDT
11.0->11.1
- JDT and GrEclipse
v2.37.0
Added
Changed
- We are now opting in to Gradle's new stable configuration cache. (#1591)
- Adopt Equo Solstice OSGi and p2 shim to update all Eclipse-based plugins. (#1524)
- Eclipse JDT now supports
4.9through4.26. Also we now recommend dropping the last.0, e.g.4.26instead of4.26.0, you'll get warnings to help you switch. - Eclipse Groovy now supports
4.18through4.26. Also we now recommend dropping the last.0, e.g.4.26instead of4.26.0, you'll get warnings to help you switch. - Eclipse CDT now supports
10.6through11.0. - Eclipse WTP is still WIP at #1622.
- Eclipse JDT now supports
v2.36.0
Added
-
gradlew equoIdeopens a repeatable clean Spotless dev environment. (#1523) -
cleanthataddedincludeDraftoption, to include draft mutators from composite mutators. (#1574) -
npm-based formatters now support caching ofnode_modulesdirectory (#1590)
Fixed
-
JacksonJsonFormatterFunchandles json files with an Array as root. (#1585)
Changed
- Bump default
cleanthatversion to latest2.1->2.6(#1569 and #1574) - Reduce logging-noise created by
npm-based formatters (#1590 fixes #1582)
v2.35.0
Added
- CleanThat Java Refactorer. (#1560)
- Introduce
LazyArgLoggerto allow for lazy evaluation of log messages in slf4j logging. (#1565)
Fixed
- Allow multiple instances of the same npm-based formatter to be used by separating their
node_modulesdirectories. (#1565) -
ktfmtdefault style uses correct continuation indent. (#1562)
Changed
- Bump default
ktfmtversion to latest0.42->0.43(#1561) - Bump default
jacksonversion to latest2.14.1->2.14.2(#1536)
v2.34.0
Added
-
Formatternow has a fieldpublic static final File NO_FILE_SENTINELwhich can be used to pass string content to a Formatter or FormatterStep when there is no actual File to format. (#1525)
v2.33.0
Added
-
ProcessRunnerhas added some convenience methods so it can be used for Maven testing. (#1496) -
ProcessRunnerallows to limit captured output to a certain number of bytes. (#1511) -
ProcessRunneris now capable of handling long-running tasks where waiting for exit is delegated to the caller. (#1511) - Allow to specify node executable for node-based formatters using
nodeExecutableparameter (#1500)
Fixed
- The default list of type annotations used by
formatAnnotationshas had 8 more annotations from the Checker Framework added #1494
Changed
- POTENTIALLY BREAKING Bump minimum JRE from 8 to 11, next release likely to bump bytecode to Java 11 (#1514 part 1 of #1337)
- Rename
YamlJacksonStepintoJacksonYamlStepwhile normalizing Jackson usage (#1492) - Convert
gsonintegration to use a compile-only source set (#1510). - ** POTENTIALLY BREAKING** Removed support for KtLint 0.3x and 0.45.2 (#1475)
-
KtLintdoes not maintain a stable API - before this MR, we supported every breaking change in the API since 2019. - From now on, we will support no more than 2 breaking changes at a time.
-
- NpmFormatterStepStateBase delays
npm installcall until the formatter is first used. This enables better integration withgradle-node-plugin. (#1522) - Bump default
ktlintversion to latest0.48.1->0.48.2(#1529) - Bump default
scalafmtversion to latest3.6.1->3.7.1(#1529)
v2.32.0
Added
- Add option
editorConfigFileforktLint#142-
POTENTIALLY BREAKING
ktlintstep now modifies license headers. Make sure to putlicenseHeaderafterktlint.
-
POTENTIALLY BREAKING
- Added
skipLinesMatchingoption tolicenseHeaderto support formats where license header cannot be immediately added to the top of the file (e.g. xml, sh). (#1441). - Add YAML support through Jackson (#1478)
- Added support for npm-based ESLint-formatter for javascript and typescript (#1453)
- Better suggested messages when user's default is set by JVM limitation. (#995)
Fixed
- Support
ktlint0.48+ new rule disabling syntax (#1456) fixes (#1444) - Fix subgroups leading catch all matcher.
Changed
- Bump default version for
prettierfrom2.0.5to2.8.1(#1453) - Bump the dev version of Gradle from
7.5.1to7.6(#1409)- We also removed the no-longer-required dependency
org.codehaus.groovy:groovy-xml
- We also removed the no-longer-required dependency
- Breaking changes to Spotless' internal testing infrastructure
testlib(#1443)-
ResourceHarnessno longer has any duplicated functionality which was also present inStepHarness -
StepHarnessnow operates onFormatterrather than aFormatterStep -
StepHarnessWithFilenow takes aResourceHarnessin its constructor to handle the file manipulation parts - Standardized that we test exception messages, not types, which will ease the transition to linting later on
- Bump default
ktlintversion to latest0.47.1->0.48.1(#1456)
-
- Switch our publishing infrastructure from CircleCI to GitHub Actions (#1462).
- Help wanted for moving our tests too (#1472)
v2.31.0
Added
-
importOrdernow support groups of imports without blank lines (#1401)
Fixed
- Don't treat
@Valueas a type annotation #1367 - Support
ktlint_disabled_rulesinktlint0.47.x #1378 - Share git repositories across projects when using ratchet (#1426)
Changed
- Bump default
ktfmtversion to latest0.40->0.41(#1340) - Bump default
scalafmtversion to latest3.5.9->3.6.1(#1373) - Bump default
diktatversion to latest1.2.3->1.2.4.2(#1393) - Bump default
palantir-java-formatversion to latest2.10->2.28(#1393)
v2.30.0
Added
-
formatAnnotations()step to correct formatting of Java type annotations. It puts type annotations on the same line as the type that they qualify. Run it after a Java formatting step, such asgoogleJavaFormat(). (#1275)
Changed
- Bump default
ktfmtversion to latest0.39->0.40(#1312) - Bump default
ktlintversion to latest0.46.1->0.47.1(#1303)- Also restored support for older versions of ktlint back to
0.31.0
- Also restored support for older versions of ktlint back to
v2.29.0
Added
-
scalafmtintegration now has a configuration optionmajorScalaVersionthat allows you to configure the Scala version that gets resolved from the Maven artifact (#1283)- Converted
scalafmtintegration to use a compile-only source set (fixes #524)
- Converted
Changed
- Add the
ktlintrule in error messages whenktlintfails to apply a fix (#1279) - Bump default
scalafmtto latest3.0.8->3.5.9(removed support for pre-3.0.0) (#1283)
v2.28.0
Added
- Clang and Black no longer break the build when the binary is unavailable, if they will not be run during that build (#1257).
- License header support for Kotlin files without
packageor@filebut do at least haveimport(#1263).
v2.27.0
Added
Changed
- Bump default
ktlintversion to latest0.45.2->0.46.1(#1239)- Minimum supported version also bumped to
0.46.0(we have abandoned strong backward compatibility forktlint, from here on out Spotless will only support the most-recent breaking change).
- Minimum supported version also bumped to
- Bump default
diktatversion to latest1.1.0->1.2.1(#1246)- Minimum supported version also bumped to
1.2.1(diktat is based on ktlint and has the same backward compatibility issues).
- Minimum supported version also bumped to
- Bump default
ktfmtversion to latest0.37->0.39(#1240)
v2.26.0
Added
Fixed
-
google-java-formatandRemoveUnusedImportsStepworks on JDK16+ without jvm args workaround. (#1224 fixes #834)
v2.25.0
Added
- Added support for enabling ktlint experimental ruleset. (#1145)
Fixed
- Fixed support for Python Black's new version reporting. (#1170)
- Error messages for unexpected file encoding now works on Java 8. (fixes #1081)
Changed
- Bump default
blackversion to latest19.10b0->22.3.0. (#1170) - Bump default
ktfmtversion to latest0.34->0.35. (#1159) - Bump default
ktlintversion to latest0.43.2->0.45.2. (#1177)
v2.24.1
Fixed
- Fixed access modifiers for setters in KtfmtStep configuration
v2.24.0
Added
- Added support for setting custom parameters for Kotlin ktfmt in Gradle and Maven plugins. (#1145)
v2.23.0
Added
Changed
- Use SLF4J for logging (#1116)
v2.22.2
Changed
- Bump default ktfmt
0.30->0.31(#1118).
Fixed
- Add full support for git worktrees (#1119).
v2.22.1
Changed
- Bump CI from Java 15 to 17 (#1094).
- Bump default versions of formatters (#1095).
- google-java-format
1.12.0->1.13.0 - ktfmt
0.29->0.30
- google-java-format
- Added support for git property
core.autocrlf(#540)
v2.22.0
Added
- Added support for the palantir-java-format Java formatter (#1083).
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Perun-GitLab Service Account