Skip to content

Releases: google/google-java-format

v1.30.0

13 Oct 13:33
Compare
Choose a tag to compare

Changes:

  • Initial support for import module (#1213)

Full Changelog: v1.29.0...v1.30.0

v1.29.0

03 Oct 13:24
Compare
Choose a tag to compare

This release contains no formatting changes.

The minimum support JDK version to run google-java-format is now JDK 21. Using google-java-format to format earlier versions of the language is still fully supported, but running the formatter itself on JDK 21 or newer is required.

Full Changelog: v1.28.0...v1.29.0

v1.28.0

09 Jul 23:26
Compare
Choose a tag to compare

This release contains no formatting changes.

Releases (including snapshots) have migrated from OSSRH to the Central Publisher Portal.

Full Changelog: v1.27.0...v1.28.0

v1.27.0

06 May 23:40
Compare
Choose a tag to compare

This release contains no formatting changes.

Changes:

  • Improved compatibility with JDK 24 early access builds (96f114c)
  • Optimize string wrapping (8633826)

Full Changelog: v1.26.0...v1.27.0

v1.26.0

27 Mar 17:29
Compare
Choose a tag to compare

Formatting changes:

  • Text blocks: don't automatically deindent long text blocks to start at column 0. For text blocks that are already deindented, the existing choice will be preserved, but it won't happen automatically.
  • Text blocks: for deindented text blocks, put the opening """ at column 0 instead of indenting it

Changes:

  • The published GraalVM native-image binaries now include a binary for Linux arm64

Full Changelog: v1.25.2...v1.26.0

v1.25.2

11 Dec 22:02
Compare
Choose a tag to compare

Changes:

  • Fix a crash formatting text blocks involving trailing whitespace before the close delimiter (#1205)

Full Changelog: v1.25.1...v1.25.2

v1.25.1

10 Dec 00:27
Compare
Choose a tag to compare

Changes:

  • Fix a crash in text block formatting (#1195)

Full Changelog: v1.25.0...v1.25.1

v1.25.0

21 Nov 19:49
Compare
Choose a tag to compare

The minimum support JDK version to run google-java-format is now JDK 17 (#1159). Using google-java-format to format earlier versions of the language is still supported, but running the formatter itself on JDK 17 or newer is required.

Changes:

  • Various improvements to text block formatting
  • Improve formatting of when pattern guards

Full Changelog: v1.24.0...v1.25.0

v1.24.0

04 Oct 17:23
Compare
Choose a tag to compare

Changes:

  • Fix inconsistency in formatting of comments in switch statements (#1127)
  • Fix different formatting of block line comments (#1153)
  • Print the problem line as context in error messages

Full Changelog: v1.23.0...v1.24.0

v1.23.0

30 Jul 20:53
Compare
Choose a tag to compare

Changes:

  • Adjust indentation of line comments inside expression switches (#876)
  • Fix modifier order handling for non-sealed (7fd9300)
  • Handle empty classes with no members that contain semi-colons (b9b6730)
  • Support overlapping ranges in --lines (c4b467d)
  • Remove support for the String Templates preview feature, see https://bugs.openjdk.org/browse/JDK-8329949 (fdf4b29)
  • Improve compatibility with latest JDK early access builds (0b384e3)

Full Changelog: v1.22.0...v1.23.0