Skip to content

Increasing minimum supported JDK (and dropping support for JDK 11) #1159

Description

@cushon

Following the example of google/error-prone#3803, we're considering removing support for running google-java-format on JDK 11. The new minimum supported JDK would be JDK 17 (the next LTS release after 11).

google-java-format would still fully support formatting earlier source code versions, it would just require running the tool on JDK 17 or later.

Activity

  1. pinned this issue on Sep 11, 2024
  2. sormuras commented on Sep 12, 2024

    @sormuras
    Contributor

    Doesn't the runtime version determine the source code version at the moment? Or does GJF support a --source 11 option? 🤔

  3. tbroyer commented on Sep 12, 2024

    @tbroyer
    Contributor

    Afaict it determines what can be parsed but not how it'll be formatted.

  4. cushon commented on Sep 12, 2024

    @cushon
    CollaboratorAuthor

    Afaict it determines what can be parsed but not how it'll be formatted.

    Right, it'll parse at whatever the newest language level supported by the runtime is, and shouldn't affect formatting. Newer source versions are usually a superset of older ones, but there are some occasional breaking changes like new reserved identifiers, #975 is a related FR about making the source version g-j-f parses at configurable.

  5. cushon commented on Oct 4, 2024

    @cushon
    CollaboratorAuthor

    I just pushed another release, and am planning to update the minimum supported JDK to 17 for the next release after that one: https://github.com/google/google-java-format/releases/tag/v1.24.0

  6. cushon commented on Nov 19, 2024

    @cushon
    CollaboratorAuthor

    I pushed 1.25.0, which raises the minimum supported JDK to JDK 17: https://github.com/google/google-java-format/releases/tag/v1.25.0

    (I previously mistakenly updated the release notes for 1.24.0, I have finished publishing the 1.25.0 release and restored the 1.24.0 relnotes, sorry for the mixup.)

  7. unpinned this issue on Nov 23, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions