googleapis / java-shared-config

Shared Maven build configuration for Google Cloud Java client libraries.
Apache License 2.0
19 stars 15 forks source link

deps: update dependency com.google.googlejavaformat:google-java-format to v1.23.0 #798

Open renovate-bot opened 4 months ago

renovate-bot commented 4 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.googlejavaformat:google-java-format 1.7 -> 1.23.0 age adoption passing confidence

Release Notes

google/google-java-format (com.google.googlejavaformat:google-java-format) ### [`v1.23.0`](https://togithub.com/google/google-java-format/releases/tag/v1.23.0) Changes: - Adjust indentation of line comments inside expression switches ([#​876](https://togithub.com/google/google-java-format/issues/876)) - Fix modifier order handling for `non-sealed` (https://github.com/google/google-java-format/commit/7fd9300499228717bcfee75ff4f836507df832ee) - Handle empty classes with no members that contain semi-colons (https://github.com/google/google-java-format/commit/b9b6730b80a16798da559f2d50112cec3d8538ad) - Support overlapping ranges in `--lines` (https://github.com/google/google-java-format/commit/c4b467d50bd6bb52935075b438f602ff902db167) - Remove support for the String Templates preview feature, see https://bugs.openjdk.org/browse/JDK-8329949 (https://github.com/google/google-java-format/commit/fdf4b29a6e1206f451bd96ed7967f4061921881a) - Improve compatibility with latest JDK early access builds (https://github.com/google/google-java-format/commit/0b384e32b39117a8da2829d8543e7474338ddebe) Full Changelog: https://github.com/google/google-java-format/compare/v1.22.0...v1.23.0 ### [`v1.22.0`](https://togithub.com/google/google-java-format/releases/tag/v1.22.0) Changes: - Improve support for tokens that span multiple lines ([`9bdae02`](https://togithub.com/google/google-java-format/commit/9bdae025b7b023d45636e707c9225d0cdd66eb0b)) - Fix an issue with text block formatting, when the text block is the receiver of a method call ([#​1081](https://togithub.com/google/google-java-format/issues/1081)) - `google-java-format-diff.py` now parallelizes the calls to the formatter, for better performance ([`3ee6e2a`](https://togithub.com/google/google-java-format/commit/3ee6e2a34029bc5e68a5f733749e2732c2bf7940)) Full Changelog: https://github.com/google/google-java-format/compare/v1.21.0...v1.22.0 ### [`v1.21.0`](https://togithub.com/google/google-java-format/releases/tag/v1.21.0) Formatting changes: - Adjust indentation of text blocks ([`ce3cb59`](https://togithub.com/google/google-java-format/commit/ce3cb59a8d649359a8e6e7fcc5f2f21bb79b3df1)) Bug fixes: - Fix a crash with comments inside string templates ([`e946e82`](https://togithub.com/google/google-java-format/commit/e946e82801eb5bbd52bea00355ba20450bc0725c)) - Native image `-version` reports `HEAD-SNAPSHOT` instead of the correct version ([#​1068](https://togithub.com/google/google-java-format/issues/1068)) - Improve compatibility with older glibc versions ([#​1072](https://togithub.com/google/google-java-format/issues/1072)) Full Changelog: https://github.com/google/google-java-format/compare/v1.20.0...v1.21.0 ### [`v1.20.0`](https://togithub.com/google/google-java-format/releases/tag/v1.20.0) This release includes [GraalVM native-image](https://www.graalvm.org/22.0/reference-manual/native-image/) binaries for google-java-format for windows, linux, and mac. These binaries offer improved startup performance. Changes: - Keep type-use annotation with type when wrapping ([`03efe44`](https://togithub.com/google/google-java-format/commit/03efe44d9affc989eee8623651fbdf1bcc7240dc)) - Handle 'any' patterns ([#​1037](https://togithub.com/google/google-java-format/issues/1037)) Full Changelog: https://github.com/google/google-java-format/compare/v1.19.2...v1.20.0 ### [`v1.19.2`](https://togithub.com/google/google-java-format/releases/tag/v1.19.2) #### Changes - Improve support for string templates ([#​1010](https://togithub.com/google/google-java-format/issues/1010)) - Handle `var` in record patterns ([#​1020](https://togithub.com/google/google-java-format/issues/1020)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.19.1...v1.19.2 ### [`v1.19.1`](https://togithub.com/google/google-java-format/releases/tag/v1.19.1) #### Changes - Fix support for Java 21 features by enabling JDK 21 for release builds ([#​1014](https://togithub.com/google/google-java-format/issues/1014)). **Full Changelog**: https://github.com/google/google-java-format/compare/v1.19.0...v1.19.1 ### [`v1.19.0`](https://togithub.com/google/google-java-format/releases/tag/v1.19.0) #### Changes This release adds initial support for more Java 21 features, including: - String templates ([#​981](https://togithub.com/google/google-java-format/issues/981)) - Unnamed variables ([#​978](https://togithub.com/google/google-java-format/issues/978)) - Pattern matching and guard clauses in switch expressions ([#​937](https://togithub.com/google/google-java-format/issues/937), [#​880](https://togithub.com/google/google-java-format/issues/880), [#​983](https://togithub.com/google/google-java-format/issues/983), [#​988](https://togithub.com/google/google-java-format/issues/988)) Other changes: - Handle type annotations on method reference qualifiers ([`53390d9`](https://togithub.com/google/google-java-format/commit/53390d99b56edae23cfab5adcafd7df28d9984c8)) - Avoid reflowing text blocks ([#​976](https://togithub.com/google/google-java-format/issues/976)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.18.1...v1.19.0 ### [`v1.18.1`](https://togithub.com/google/google-java-format/releases/tag/v1.18.1) [Compare Source](https://togithub.com/google/google-java-format/compare/v1.18.0...v1.18.1) #### Changes - Fixed version number for Eclipse plugin ([#​744](https://togithub.com/google/google-java-format/issues/744)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.18.0...v1.18.1 ### [`v1.18.0`](https://togithub.com/google/google-java-format/releases/tag/v1.18.0) [Compare Source](https://togithub.com/google/google-java-format/compare/v1.17.0...v1.18.0) #### Changes - Update Guava version to resolve https://github.com/advisories/GHSA-7g45-4rm6-3mm3 ([#​950](https://togithub.com/google/google-java-format/issues/950)) - Handle `final var` lambda variables ([#​959](https://togithub.com/google/google-java-format/issues/959)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.17.0...v1.18.0 ### [`v1.17.0`](https://togithub.com/google/google-java-format/releases/tag/v1.17.0) [Compare Source](https://togithub.com/google/google-java-format/compare/v1.16.0...v1.17.0) #### Changes - Fix compatibility with OpenJDK 21 early access builds ([#​898](https://togithub.com/google/google-java-format/issues/898)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.16.0...v1.17.0 ### [`v1.16.0`](https://togithub.com/google/google-java-format/releases/tag/v1.16.0) [Compare Source](https://togithub.com/google/google-java-format/compare/v1.15.0...v1.16.0) #### Changes - Format long exception lists one per line (https://github.com/google/google-java-format/commit/198fa4236724f0305f1d4fb9447ce0b48984746f) - Normalize parameter comments (https://github.com/google/google-java-format/commit/dda43216576c4cb84e2497424b9ca9246f2687e5) #### Bug fixes - Return a non-zero exit code on error ([#​848](https://togithub.com/google/google-java-format/issues/848)) - Formatter leaks threads and memory ([#​847](https://togithub.com/google/google-java-format/issues/847)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.15.0...v1.16.0 ### [`v1.15.0`](https://togithub.com/google/google-java-format/releases/tag/v1.15.0) [Compare Source](https://togithub.com/google/google-java-format/compare/v1.14.0...v1.15.0) #### What's Changed - Passing `--add-exports` flags on the command line is no longer necessary for JDK 17 and newer (https://github.com/google/google-java-format/commit/ee81afc93990493701a6f7a2801eff058ac57891) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.14.0...v1.15.0 ### [`v1.14.0`](https://togithub.com/google/google-java-format/releases/tag/v1.14.0): 1.14.0 [Compare Source](https://togithub.com/google/google-java-format/compare/v1.13.0...v1.14.0) #### What's Changed - Handle modifiers that start with `non-` ([#​696](https://togithub.com/google/google-java-format/issues/696)) - Treat single-character upper case identifiers as UpperCamelCase, to improve formatting of Android `R` classes ([`16e72a1`](https://togithub.com/google/google-java-format/commit/16e72a1a9bbf182fac6686807e54bc846a9543ed)) - Don't format javadoc without a summary fragment as a single-line ([`668f108`](https://togithub.com/google/google-java-format/commit/668f108de438db15158d33ed1a386bdbab3b4d09)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.13.0...v1.14.0 ### [`v1.13.0`](https://togithub.com/google/google-java-format/releases/tag/v1.13.0): 1.13.0 [Compare Source](https://togithub.com/google/google-java-format/compare/v1.12.0...v1.13.0) #### What's Changed - Fix formatting of pattern matching in switch when running on Java 17 ([#​689](https://togithub.com/google/google-java-format/issues/689), [#​690](https://togithub.com/google/google-java-format/issues/690)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.12.0...v1.13.0 ### [`v1.12.0`](https://togithub.com/google/google-java-format/releases/tag/v1.12.0): 1.12.0 [Compare Source](https://togithub.com/google/google-java-format/compare/v1.11.0...v1.12.0) #### What's Changed - Format type annotation as part of the type, not part of the modifiers list ([https://github.com/google/google-java-format/pull/653](https://togithub.com/google/google-java-format/pull/653)) - Fix indentation of case statements on JDK 17 ([https://github.com/google/google-java-format/pull/654](https://togithub.com/google/google-java-format/pull/654)) **Full Changelog**: https://github.com/google/google-java-format/compare/v1.11.0...v1.12.0 ### [`v1.11.0`](https://togithub.com/google/google-java-format/releases/tag/v1.11.0): 1.11.0 [Compare Source](https://togithub.com/google/google-java-format/compare/v1.10.0...v1.11.0) `google-java-format` now has improved support for running on JDK 17 early access builds. Changes: - Handle `final` variables in `instanceof` patterns ([#​588](https://togithub.com/google/google-java-format/issues/588)) - Fix handling of annotations in compact record constructors ([#​574](https://togithub.com/google/google-java-format/issues/574)) - Fix a crash in `instanceof` pattern handling ([#​594](https://togithub.com/google/google-java-format/issues/594)) - Wrap multiple values in switch expression case ([#​540](https://togithub.com/google/google-java-format/issues/540)) - Fix formatting of module trees after [JDK-8255464](https://bugs.openjdk.java.net/browse/JDK-8255464) - Support `sealed` classes ([#​603](https://togithub.com/google/google-java-format/issues/603)) ### [`v1.10.0`](https://togithub.com/google/google-java-format/releases/tag/v1.10.0): 1.10.0 `google-java-format` now supports running on JDK 16. The following flags are required when running on JDK 16, due to [JEP 396: Strongly Encapsulate JDK Internals by Default](https://openjdk.java.net/jeps/396): java \ --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \ -jar google-java-format-1.10.0-all-deps.jar T... Other changes: - Handle extra `;` in import lists (https://github.com/google/google-java-format/commit/b769e812a052d7cff4a2d86eff4981a5d358ee2d) - Add missing space between unary `-` and negative literals (https://github.com/google/google-java-format/commit/6da736d786ac71a134ed6cc43e9cd825c83de0fd) - Fix an off-by-one issue on the reflowing of string literals (https://github.com/google/google-java-format/commit/b9fd8d2242869ea7c9efd10cbbe7278c4b6611b1)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

suztomo commented 4 months ago

The google-java-format version needs to match the one in the owlbot-java postprocessor. Adding "do not merge" label while we overhauling the postprocessor infrastructure.

dpebot commented 4 weeks ago

/gcbrun