Skip to content

Commit 289332d

Browse files
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

File tree

‎quarkus-app/pom.xml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,12 @@
290290
<plugin>
291291
<groupId>com.diffplug.spotless</groupId>
292292
<artifactId>spotless-maven-plugin</artifactId>
293-
<version>2.46.1</version>
293+
<version>2.43.0</version>
294294
<configuration>
295295
<java>
296-
<googleJavaFormat/>
296+
<googleJavaFormat>
297+
<version>1.24.0</version>
298+
</googleJavaFormat>
297299
</java>
298300
</configuration>
299301
</plugin>

0 commit comments

Comments
 (0)