Formatter now has a field public static final File NO_FILE_SENTINEL which can be used to pass string content to a Formatter or FormatterStep when there is no actual File to format. (#1525)
[2.33.0] - 2023-01-26
Added
ProcessRunner has added some convenience methods so it can be used for maven testing. (#1496)
ProcessRunner allows to limit captured output to a certain number of bytes. (#1511)
ProcessRunner is 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 nodeExecutable parameter (#1500)
Fixed
The default list of type annotations used by formatAnnotations has had 8 more annotations from the Checker Framework added #1494
Changes
POTENTIALLY BREAKING Bump minimum JRE from 8 to 11, next release likely to bump bytecode to Java 11 (#1514 part 1 of #1337)
Rename YamlJacksonStep into JacksonYamlStep while normalizing Jackson usage (#1492)
Convert gson integration to use a compile-only source set (#1510).
** POTENTIALLY BREAKING** Removed support for KtLint 0.3x and 0.45.2 (#1475)
KtLint does not maintain a stable API - before this PR, 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 install call until the formatter is first used. This enables better integration
with gradle-node-plugin. (#1522)
Bump default ktlint version to latest 0.48.1 -> 0.48.2 (#1529)
Bump default scalafmt version to latest 3.6.1 -> 3.7.1 (#1529)
POTENTIALLY BREAKINGktlint step now modifies license headers. Make sure to put licenseHeaderafterktlint.
Added skipLinesMatching option to licenseHeader to support formats where license header cannot be immediately added to the top of the file (e.g. xml, sh). (#1441).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps spotless-maven-plugin from 2.30.0 to 2.34.0.
Changelog
Sourced from spotless-maven-plugin's changelog.
... (truncated)
Commits
599e1e4
Published lib/2.34.047985cd
Add Formatter.NO_FILE_SENTINEL (#1525)1f78aff
Update changelog.ad78bc6
Merge branch 'main' into FromFileToPath9adce64
Fix javadoc.5bef415
Published maven/2.31.007a57ff
Rename the sentinel and move it toFormatter
.f1cfc61
Published gradle/6.14.02995371
So we have to run the workflow on therelease
branch, and we need to pull...2aa7f51
Another shot at fixing our publish workflow.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)