Skip to content

Commit 26371bd

Browse files
SOLR-18296: Upgrade google-java-format to 1.35.0
google-java-format 1.18.1 calls a javac internal (Log$DeferredDiagnosticHandler.getDiagnostics()) whose signature changed in JDK 24, so tidy/spotlessApply throws NoSuchMethodError on JDK 24+. 1.34.0+ supports the newer JDKs; this bumps to 1.35.0. Java baseline unchanged (21). The mechanical reformatting produced by the new formatter is in a separate follow-up commit so it can be added to .git-blame-ignore-revs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 62400f9 commit 26371bd

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Upgrade google-java-format to 1.35.0 (fixes JDK 24/25 build break)
2+
type: dependency_update
3+
authors:
4+
- name: Serhiy Bzhezytskyy
5+
links:
6+
- name: SOLR-18296
7+
url: https://issues.apache.org/jira/browse/SOLR-18296

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ google-guava = "33.6.0-jre"
103103
# @keep for version alignment
104104
google-j2objc = "3.1"
105105
# @keep This is GJF version for spotless/ tidy.
106-
google-javaformat = "1.18.1"
106+
google-javaformat = "1.35.0"
107107
# @keep for version alignment
108108
google-protobuf = "4.35.1"
109109
# @keep Gradle version to run the build

0 commit comments

Comments
 (0)