Skip to content

Update plugin com.diffplug.spotless to v8.11.0 - #622

Merged
sir-gon merged 1 commit into
mainfrom
renovate/com.diffplug.spotless-8.x
Nov 3, 2026
Merged

sir-gon merged 1 commit into
mainfrom
renovate/com.diffplug.spotless-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
com.diffplug.spotless 8.10.4 → 8.11.0 age confidence

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@fossabot

fossabot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✓ Safe to upgrade

I recommend merging this upgrade because the main behavioral change introduced, bumping the default google-java-format from 1.36.1 to 2.0.0 (which activates non-whitespace cleanups such as removing redundant semicolons, empty annotation parentheses, and parentheses around single lambda parameters), does not affect this project. The spotless configuration in algorithm-exercises-java/build.gradle explicitly pins googleJavaFormat('1.33.0'), so the new default is never applied. The two new API options (cleanup(boolean) and maxLineLength(int)) are not referenced anywhere in the build scripts, and neither requires any code changes. No security vulnerabilities were identified for this upgrade.

What we checked

  • The com.diffplug.spotless plugin is declared as a direct dependency at 8.11.0, confirming this PR upgrades it from 8.10.4. [1]
  • The spotless block explicitly pins googleJavaFormat('1.33.0'), bypassing the default version bump to 2.0.0 introduced in this Spotless release. The non-whitespace cleanup behavior change does not apply here. [2]
  • The full spotless { java { ... } } configuration block uses only googleJavaFormat, removeUnusedImports, trimTrailingWhitespace, and endWithNewline. Neither of the two newly added options, cleanup(boolean) or maxLineLength(int), is referenced, so no migration is required. [3]
  • Release notes confirm the default google-java-format was bumped to 2.0.0, enabling non-whitespace cleanups by default. Because this project pins 1.33.0 explicitly, this change has no effect. The cleanup(false) escape hatch is documented for projects that use the default version and need to preserve old behavior. [4]

Dependency Usage

No usage of the analyzed dependencies was found in this repository.

View 1 more usage
  • The full spotless { java { ... } } configuration block uses only googleJavaFormat, removeUnusedImports, trimTrailingWhitespace, and endWithNewline. Neither of the two newly added options, cleanup(boolean) or maxLineLength(int), is referenced, so no migration is required.

Changes

com.diffplug.spotless has been updated with two new configuration options for Google Java Format: GoogleJavaFormatConfig.cleanup(boolean) to control non-whitespace cleanups (enabled by default) and GoogleJavaFormatConfig.maxLineLength(int) to override the default 100-column limit for both GOOGLE and AOSP styles. Both features require google-java-format at version 2.0.0 or later.

  • Added GoogleJavaFormatConfig.cleanup(boolean) to enable or disable google-java-format's non-whitespace cleanups (requires google-java-format 2.0.0 or later). Cleanups are enabled by default. (v8.11.0, package source)
  • Added GoogleJavaFormatConfig.maxLineLength(int) to override the column limit set by the style (100 for both GOOGLE and AOSP). Requires google-java-format 2.0.0 or later. (v8.11.0, package source)
References (4)

[1]: The com.diffplug.spotless plugin is declared as a direct dependency at 8.11.0, confirming this PR upgrades it from 8.10.4.

id "com.diffplug.spotless" version "8.11.0"

[2]: The spotless block explicitly pins googleJavaFormat('1.33.0'), bypassing the default version bump to 2.0.0 introduced in this Spotless release. The non-whitespace cleanup behavior change does not apply here.

[3]: The full spotless { java { ... } } configuration block uses only googleJavaFormat, removeUnusedImports, trimTrailingWhitespace, and endWithNewline. Neither of the two newly added options, cleanup(boolean) or maxLineLength(int), is referenced, so no migration is required.

[4]: Release notes confirm the default google-java-format was bumped to 2.0.0, enabling non-whitespace cleanups by default. Because this project pins 1.33.0 explicitly, this change has no effect. The cleanup(false) escape hatch is documented for projects that use the default version and need to preserve old behavior. (source link)


fossabot analyzed this PR using dependency research and AI. View this analysis on the web

@fossabot

fossabot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

fossabot is Thinking

@fossabot

fossabot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

fossabot is Thinking

@fossabot

fossabot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

No Issues

No security issues were detected in the SAST scan. The code changes appear to follow secure coding practices.


fossabot analyzed this PR using SAST security analysis and AI (changed files only).

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4d3775f) to head (185a8d9).

Additional details and impacted files
@@             Coverage Diff             @@
##                main      #622   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       434       434           
===========================================
  Files             76        76           
  Lines           1383      1383           
  Branches         210       210           
===========================================
  Hits            1383      1383           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

@sir-gon
sir-gon merged commit 0bfa0bd into main Nov 3, 2026
50 checks passed
@sir-gon
sir-gon deleted the renovate/com.diffplug.spotless-8.x branch November 3, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant