Repository navigation
Commit 289332d
fix(build): downgrade Spotless plugin for Java 21 compatibility
Updated spotless-maven-plugin from 2.46.1 to 2.43.0 and pinned
google-java-format to 1.24.0 to resolve Java 21 compatibility issues.
Issue: spotless-maven-plugin 2.46.1 fails with NoSuchMethodError when
running on Java 21 due to binary incompatibility with getDiagnostics():
java.lang.NoSuchMethodError: 'java.util.Queue
com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
Root cause: Version 2.46.1 is designed for Java 11, not Java 21+.
According to official documentation and GitHub issue #2468, this is a
known compatibility issue.
Solution: Use version 2.43.0 which has proper Java 21 support with
google-java-format 1.24.0.
This resolves the 'style' job failure in PR Quality - Suite workflow.
Sources:
- diffplug/spotless#2468
- diffplug/spotless#1791
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent e1cebd4 commit 289332d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
| |||
0 commit comments