Skip to content

[sdk-platform-java] Bring google-java-format to 1.14 that requires JDK 11 #12529

Description

@suztomo

Recording my observation of RenovateBot failure on google-java-format.

Environment details

  • Programming language: Java
  • OS: N/A
  • Language runtime version: N/A
  • Package version: N/A

Steps to reproduce

  1. Try bringing up google-java-format version to the latest (1.14), the build fails: fix(deps): update dependency com.google.googlejavaformat:google-java-format to v1.14.0 sdk-platform-java#945
  2. Read the error message
[INFO] -------------------------------------------------------------
Error:  COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
Error:  /home/runner/work/gapic-generator-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/JavaFormatter.java:[18,40] cannot access com.google.googlejavaformat.java.Formatter
bad class file: /home/runner/.m2/repository/com/google/googlejavaformat/google-java-format/1.14.0/google-java-format-1.14.0.jar(com/google/googlejavaformat/java/Formatter.class)
  class file has wrong version 55.0, should be 52.0
  Please remove or make sure it appears in the correct subdirectory of the classpath.

Interestingly, it's a compilation error probably because how Bazel uses google-java-format.

Since 1.8, google-java-format requires JDK 11.

The minimum supported runtime version is now JDK 11.

https://github.com/google/google-java-format/releases/tag/google-java-format-1.8

Activity

  1. added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Feb 23, 2022
  2. changed the title [-]Bring google-java-format to 1.14 that requires JDK 11[/-] [+][sdk-platform-java] Bring google-java-format to 1.14 that requires JDK 11[/+] on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions