-
Notifications
You must be signed in to change notification settings - Fork 18
Commit fba6551
authored
Bump com.diffplug.spotless:spotless-maven-plugin from 2.46.1 to 3.0.0 (#335)
Bumps
[com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless)
from 2.46.1 to 3.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/diffplug/spotless/releases">com.diffplug.spotless:spotless-maven-plugin's
releases</a>.</em></p>
<blockquote>
<h2>Lib v3.0.0</h2>
<h2>Headline changes</h2>
<ul>
<li>All steps now support roundtrip serialization (end of <a
href="https://redirect.github.com/diffplug/spotless/issues/987">#987</a>).</li>
<li>Spotless now supports <a
href="https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md#lints">linting</a>
in addition to formatting.</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Allow setting Eclipse config from a string, not only from files (<a
href="https://redirect.github.com/diffplug/spotless/pull/2337">#2337</a>)</li>
<li>Bump default <code>ktlint</code> version to latest
<code>1.3.0</code> -> <code>1.4.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2314">#2314</a>)</li>
<li>Add <em>Sort Members</em> feature based on <a
href="https://github.com/diffplug/spotless/blob/HEAD/plugin-gradle/README.md#eclipse-jdt">Eclipse
JDT</a> implementation. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2312">#2312</a>)</li>
<li>Bump default <code>jackson</code> version to latest
<code>2.18.0</code> -> <code>2.18.1</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2319">#2319</a>)</li>
<li>Bump default <code>ktfmt</code> version to latest <code>0.52</code>
-> <code>0.53</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2320">#2320</a>)</li>
<li>Bump default <code>ktlint</code> version to latest
<code>1.4.0</code> -> <code>1.5.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2354">#2354</a>)</li>
<li>Bump minimum <code>eclipse-cdt</code> version to <code>11.0</code>
(removed support for <code>10.7</code>). (<a
href="https://redirect.github.com/diffplug/spotless/pull/2373">#2373</a>)</li>
<li>Bump default <code>eclipse</code> version to latest
<code>4.32</code> -> <code>4.34</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2381">#2381</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>You can now use <code>removeUnusedImports</code> and
<code>googleJavaFormat</code> at the same time again. (fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2159">#2159</a>)</li>
<li>The default list of type annotations used by
<code>formatAnnotations</code> now includes Jakarta Validation's
<code>Valid</code> and constraints validations (fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2334">#2334</a>)</li>
</ul>
<h2>Maven Plugin v3.0.0</h2>
<h3>Changes</h3>
<ul>
<li><strong>BREAKING</strong> Bump the required Java to <code>17</code>.
(<a
href="https://redirect.github.com/diffplug/spotless/issues/2375">#2375</a>,
<a
href="https://redirect.github.com/diffplug/spotless/pull/2540">#2540</a>)</li>
<li><strong>BREAKING</strong> Renamed <code>removeWildcardImports</code>
to <code>forbidWildcardImports</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2633">#2633</a>)</li>
<li><strong>BREAKING</strong>
<code>spotless:install-git-pre-push-hook</code> task is now always
installed in the root <code>.git/hooks</code> directory by resolving the
top-level project base directory. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2570">#2570</a>)</li>
<li>Bump JGit from <code>6.10.1</code> to <code>7.3.0</code> (<a
href="https://redirect.github.com/diffplug/spotless/pull/2257">#2257</a>)
<ul>
<li>Adds support for worktrees (fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/1765">#1765</a>)</li>
</ul>
</li>
<li>Bump default <code>google-java-format</code> version to latest
<code>1.24.0</code> -> <code>1.28.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2345">#2345</a>)</li>
<li>Bump default <code>gson</code> version to latest <code>2.13.1</code>
-> <code>2.13.2</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2615">#2615</a>)</li>
<li>Bump default <code>jackson</code> version to latest
<code>2.19.2</code> -> <code>2.20.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2606">#2606</a>)</li>
<li>Bump default <code>ktfmt</code> version to latest <code>0.53</code>
-> <code>0.58</code> (<a
href="https://redirect.github.com/diffplug/spotless/pull/2613">#2613</a>)
<ul>
<li><strong>BREAKING</strong> use
<code>TrailingCommaManagementStrategy</code> enum instead of
<code>manageTrailingCommas</code> boolean configuration option</li>
</ul>
</li>
<li>Bump default <code>ktlint</code> version to latest
<code>1.5.0</code> -> <code>1.7.1</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2555">#2555</a>)</li>
<li>Bump default <code>palantir-java-format</code> version to latest
<code>2.57.0</code> -> <code>2.71.0</code>.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix <code>spaceBeforeSeparator</code> in Jackson formatter. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2103">#2103</a>)</li>
</ul>
<h3>Added</h3>
<ul>
<li><code><lintSupressions></code> API (<a
href="https://redirect.github.com/diffplug/spotless/issues/2309">#2309</a>)</li>
<li>There is now a <code>forbidRegex(String name, String searchRegex,
String lintDetail)</code> which throws a lint anytime the regex matches.
(<a
href="https://redirect.github.com/diffplug/spotless/pull/2633">#2633</a>)</li>
</ul>
<h2>Lib v3.0.0.BETA4</h2>
<h3>Added</h3>
<ul>
<li>APIs to support linting. (implemented in <a
href="https://redirect.github.com/diffplug/spotless/pull/2148">#2148</a>,
<a
href="https://redirect.github.com/diffplug/spotless/pull/2149">#2149</a>,
<a
href="https://redirect.github.com/diffplug/spotless/pull/2307">#2307</a>)
<ul>
<li>Spotless is still primarily a formatter, not a linter. But when
formatting fails, it's more flexible to model those failures as lints so
that the formatting can continue and ideally we can also capture the
line numbers causing the failure.</li>
<li><code>Lint</code> models a single change. A
<code>FormatterStep</code> can create a lint by:
<ul>
<li>throwing an exception during formatting, ideally <code>throw
Lint.atLine(127, "code", "Well what happened
was...")</code></li>
<li>or by implementing the <code>List<Lint> lint(String content,
File file)</code> method to create multiple of them</li>
</ul>
</li>
</ul>
</li>
<li>Support for line ending policy <code>PRESERVE</code> which just
takes the first line ending of every given file as setting (no matter if
<code>\n</code>, <code>\r\n</code> or <code>\r</code>) (<a
href="https://redirect.github.com/diffplug/spotless/pull/2304">#2304</a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li><strong>BREAKING</strong> Moved <code>PaddedCell.DirtyState</code>
to its own top-level class with new methods. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2148">#2148</a>)
<ul>
<li><strong>BREAKING</strong> Removed <code>isClean</code>,
<code>applyTo</code>, and <code>applyToAndReturnResultIfDirty</code>
from <code>Formatter</code> because users should instead use
<code>DirtyState</code>.</li>
</ul>
</li>
</ul>
<h3>Fixed</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/diffplug/spotless/blob/main/CHANGES.md">com.diffplug.spotless:spotless-maven-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>[3.0.0] - 2025-01-06</h2>
<h2>Headline changes</h2>
<ul>
<li>All steps now support roundtrip serialization (end of <a
href="https://redirect.github.com/diffplug/spotless/issues/987">#987</a>).</li>
<li>Spotless now supports <a
href="https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md#lints">linting</a>
in addition to formatting.</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Allow setting Eclipse config from a string, not only from files (<a
href="https://redirect.github.com/diffplug/spotless/pull/2337">#2337</a>)</li>
<li>Bump default <code>ktlint</code> version to latest
<code>1.3.0</code> -> <code>1.4.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2314">#2314</a>)</li>
<li>Add <em>Sort Members</em> feature based on <a
href="https://github.com/diffplug/spotless/blob/main/plugin-gradle/README.md#eclipse-jdt">Eclipse
JDT</a> implementation. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2312">#2312</a>)</li>
<li>Bump default <code>jackson</code> version to latest
<code>2.18.0</code> -> <code>2.18.1</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2319">#2319</a>)</li>
<li>Bump default <code>ktfmt</code> version to latest <code>0.52</code>
-> <code>0.53</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2320">#2320</a>)</li>
<li>Bump default <code>ktlint</code> version to latest
<code>1.4.0</code> -> <code>1.5.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2354">#2354</a>)</li>
<li>Bump minimum <code>eclipse-cdt</code> version to <code>11.0</code>
(removed support for <code>10.7</code>). (<a
href="https://redirect.github.com/diffplug/spotless/pull/2373">#2373</a>)</li>
<li>Bump default <code>eclipse</code> version to latest
<code>4.32</code> -> <code>4.34</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2381">#2381</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>You can now use <code>removeUnusedImports</code> and
<code>googleJavaFormat</code> at the same time again. (fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2159">#2159</a>)</li>
<li>The default list of type annotations used by
<code>formatAnnotations</code> now includes Jakarta Validation's
<code>Valid</code> and constraints validations (fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2334">#2334</a>)</li>
</ul>
<h2>[3.0.0.BETA4] - 2024-10-24</h2>
<h3>Added</h3>
<ul>
<li>APIs to support linting. (implemented in <a
href="https://redirect.github.com/diffplug/spotless/pull/2148">#2148</a>,
<a
href="https://redirect.github.com/diffplug/spotless/pull/2149">#2149</a>,
<a
href="https://redirect.github.com/diffplug/spotless/pull/2307">#2307</a>)
<ul>
<li>Spotless is still primarily a formatter, not a linter. But when
formatting fails, it's more flexible to model those failures as lints so
that the formatting can continue and ideally we can also capture the
line numbers causing the failure.</li>
<li><code>Lint</code> models a single change. A
<code>FormatterStep</code> can create a lint by:
<ul>
<li>throwing an exception during formatting, ideally <code>throw
Lint.atLine(127, "code", "Well what happened
was...")</code></li>
<li>or by implementing the <code>List<Lint> lint(String content,
File file)</code> method to create multiple of them</li>
</ul>
</li>
</ul>
</li>
<li>Support for line ending policy <code>PRESERVE</code> which just
takes the first line ending of every given file as setting (no matter if
<code>\n</code>, <code>\r\n</code> or <code>\r</code>) (<a
href="https://redirect.github.com/diffplug/spotless/pull/2304">#2304</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li><strong>BREAKING</strong> Moved <code>PaddedCell.DirtyState</code>
to its own top-level class with new methods. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2148">#2148</a>)
<ul>
<li><strong>BREAKING</strong> Removed <code>isClean</code>,
<code>applyTo</code>, and <code>applyToAndReturnResultIfDirty</code>
from <code>Formatter</code> because users should instead use
<code>DirtyState</code>.</li>
</ul>
</li>
<li><code>FenceStep</code> now uses <code>ConfigurationCacheHack</code>.
(<a
href="https://redirect.github.com/diffplug/spotless/pull/2378">#2378</a>
fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2317">#2317</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>ktlint</code> steps now read from the <code>string</code>
instead of the <code>file</code> so they don't clobber earlier steps.
(fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/1599">#1599</a>)</li>
</ul>
<h2>[3.0.0.BETA3] - 2024-10-15</h2>
<h3>Added</h3>
<ul>
<li>Support for <code>rdf</code> (<a
href="https://redirect.github.com/diffplug/spotless/pull/2261">#2261</a>)</li>
<li>Support for <code>buf</code> on maven plugin (<a
href="https://redirect.github.com/diffplug/spotless/pull/2291">#2291</a>)</li>
<li><code>ConfigurationCacheHack</code> so we can support Gradle's
configuration cache and remote build cache at the same time. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2298">#2298</a>
fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2168">#2168</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Support configuring the Equo P2 cache. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2238">#2238</a>)</li>
<li>Add explicit support for JSONC / CSS via biome, via the file
extensions <code>.css</code> and <code>.jsonc</code>.
(<a
href="https://redirect.github.com/diffplug/spotless/pull/2259">#2259</a>)</li>
<li>Bump default <code>buf</code> version to latest <code>1.24.0</code>
-> <code>1.44.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2291">#2291</a>)</li>
<li>Bump default <code>google-java-format</code> version to latest
<code>1.23.0</code> -> <code>1.24.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2294">#2294</a>)</li>
<li>Bump default <code>jackson</code> version to latest
<code>2.17.2</code> -> <code>2.18.0</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2279">#2279</a>)</li>
<li>Bump default <code>cleanthat</code> version to latest
<code>2.21</code> -> <code>2.22</code>. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2296">#2296</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Java import order, ignore duplicate group entries. (<a
href="https://redirect.github.com/diffplug/spotless/pull/2293">#2293</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/diffplug/spotless/commit/1c2435bf26f29b083d4adc1bb8c81e2cf7c60c00"><code>1c2435b</code></a>
Published lib/3.0.0</li>
<li><a
href="https://github.com/diffplug/spotless/commit/771b6288738874d176b5c3a5a99f1a8bf36b5dcb"><code>771b628</code></a>
Update changelogs.</li>
<li><a
href="https://github.com/diffplug/spotless/commit/719f9a427f28ab9ed4173464859d645bfe9230d8"><code>719f9a4</code></a>
update default versions for Eclipse Java and Groovy formatters (<a
href="https://redirect.github.com/diffplug/spotless/issues/2381">#2381</a>)</li>
<li><a
href="https://github.com/diffplug/spotless/commit/83bc8f3876359b7b2d3c0b5f3c802599d978647c"><code>83bc8f3</code></a>
Update changelogs.</li>
<li><a
href="https://github.com/diffplug/spotless/commit/1b8dd4e5a370554262d4477e078901c18439d540"><code>1b8dd4e</code></a>
Revert the Greclipse version bump.</li>
<li><a
href="https://github.com/diffplug/spotless/commit/9507db368c7f59abedbdd3ac1c69949f459e64a6"><code>9507db3</code></a>
Merge branch 'main' into update-greclipse</li>
<li><a
href="https://github.com/diffplug/spotless/commit/bd03fa076bd04f7c50b6f4718a83171422a2ffbb"><code>bd03fa0</code></a>
Prepare to publish non-beta. Huzzah!</li>
<li><a
href="https://github.com/diffplug/spotless/commit/ea710307b21388149c9f247f59ec10103723a634"><code>ea71030</code></a>
fix gradle <code>custom</code> step with closure and configuration cache
(<a
href="https://redirect.github.com/diffplug/spotless/issues/2376">#2376</a>
fixes <a
href="https://redirect.github.com/diffplug/spotless/issues/2">#2</a>...</li>
<li><a
href="https://github.com/diffplug/spotless/commit/7a985fb36f16d751921e5a620bd86360937ca98c"><code>7a985fb</code></a>
Add an explanatory comment on why we are zeroing out the global
.gitconfig.</li>
<li><a
href="https://github.com/diffplug/spotless/commit/922c7ea4ced2347587fa7c1884c5b35f7e3cf3e3"><code>922c7ea</code></a>
Update changelog.</li>
<li>Additional commits viewable in <a
href="https://github.com/diffplug/spotless/compare/maven/2.46.1...lib/3.0.0">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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)
</details>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 55304c2 commit fba6551Copy full SHA for fba6551
File tree
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments