This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new a5d1c7701 fix(benchmarks): uses outdated google-java-format, upgrade 
spotless (#3722)
a5d1c7701 is described below

commit a5d1c7701e1719cfcaf0a21ec00ff398cf1799d2
Author: Steven Schlansker <[email protected]>
AuthorDate: Sun May 31 01:11:16 2026 -0700

    fix(benchmarks): uses outdated google-java-format, upgrade spotless (#3722)
    
    ## Why?
    
    Style format blocked my other PR, tried to run `bash ci/format.sh
    --java` but it fails due to using JDK 26
    
    ## What does this PR do?
    
    Bring benchmarks project spotless google-java-format in line with parent
    pom
    
    ## AI Contribution Checklist
    
    
    - [ ] Substantial AI assistance was used in this PR: No
    
    ## Does this PR introduce any user-facing change?
    
    No
---
 benchmarks/java/pom.xml | 3 +--
 java/pom.xml            | 6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/benchmarks/java/pom.xml b/benchmarks/java/pom.xml
index bbd9149b6..a8109ec95 100644
--- a/benchmarks/java/pom.xml
+++ b/benchmarks/java/pom.xml
@@ -403,8 +403,7 @@
               <exclude>**/generated/**/*.java</exclude>
             </excludes>
             <googleJavaFormat>
-              <!-- 1.19.1 support JDK21 -->
-              <version>1.19.1</version>
+              <version>${google-java-format.version}</version>
               <style>GOOGLE</style>
             </googleJavaFormat>
           </java>
diff --git a/java/pom.xml b/java/pom.xml
index 473b2c6a9..979236db3 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -74,7 +74,8 @@
     <janino.version>3.1.12</janino.version>
     <commons_codec.version>1.13</commons_codec.version>
     <fory.java.rootdir>${basedir}</fory.java.rootdir>
-    <maven-spotless-plugin.version>3.3.0</maven-spotless-plugin.version>
+    <maven-spotless-plugin.version>3.6.0</maven-spotless-plugin.version>
+    <google-java-format.version>1.35.0</google-java-format.version>
     <lombok.version>1.18.38</lombok.version>
     <mockito.version>4.11.0</mockito.version>
   </properties>
@@ -272,8 +273,7 @@
         <configuration>
           <java>
             <googleJavaFormat>
-              <!-- 1.35 support JDK25 -->
-              <version>1.35.0</version>
+              <version>${google-java-format.version}</version>
               <style>GOOGLE</style>
             </googleJavaFormat>
           </java>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to