fix(spotless/gradle-plugin): Fix StringIndexOutOfBoundsException in scenarios where copyright year is surrounded by whitespace#2973
Merged
nedtwigg merged 6 commits intoJun 16, 2026
Conversation
Contributor
Author
|
This PR topic needs to be edited, as this fix is not only related to |
dongjoon-hyun
added a commit
to apache/spark-kubernetes-operator
that referenced
this pull request
Jun 23, 2026
### What changes were proposed in this pull request? This PR upgrades `spotless-plugin-gradle` to `8.7.0`. ### Why are the changes needed? To use the latest release (`8.7.0`, released on 2026-06-16). - https://github.com/diffplug/spotless/releases/tag/gradle/8.7.0 - diffplug/spotless#2962 - diffplug/spotless#2940 - diffplug/spotless#2973 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.8 Closes #716 from dongjoon-hyun/SPARK-57629. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When the line with Copyright year in the source file matches the one in the license header template, but the year number is surrounded with whitespace the code fails with
StringIndexOutOfBoundsExceptionexception:Changes