diff --git a/CHANGES.md b/CHANGES.md index a4f4bf2e70..4229bc511b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format ( ## [Unreleased] +## Changed +* Bump default `gson` version to latest `2.11.0` -> `2.13.1`. ([#2414](https://github.com/diffplug/spotless/pull/2414)) + ## [3.2.0] - 2025-07-07 ### Added * Support for `idea` ([#2020](https://github.com/diffplug/spotless/pull/2020), [#2535](https://github.com/diffplug/spotless/pull/2535)) diff --git a/lib/build.gradle b/lib/build.gradle index 4f4addc2d5..115e5be32a 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -96,7 +96,7 @@ dependencies { // googleJavaFormat googleJavaFormatCompileOnly 'com.google.googlejavaformat:google-java-format:1.24.0' // gson - gsonCompileOnly 'com.google.code.gson:gson:2.11.0' + gsonCompileOnly 'com.google.code.gson:gson:2.13.1' // jackson String VER_JACKSON='2.18.1' jacksonCompileOnly "com.fasterxml.jackson.core:jackson-databind:$VER_JACKSON" diff --git a/lib/src/main/java/com/diffplug/spotless/json/gson/GsonStep.java b/lib/src/main/java/com/diffplug/spotless/json/gson/GsonStep.java index a690b02b95..31634afa88 100644 --- a/lib/src/main/java/com/diffplug/spotless/json/gson/GsonStep.java +++ b/lib/src/main/java/com/diffplug/spotless/json/gson/GsonStep.java @@ -1,5 +1,5 @@ /* - * Copyright 2022-2024 DiffPlug + * Copyright 2022-2025 DiffPlug * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public class GsonStep implements Serializable { private static final String MAVEN_COORDINATES = "com.google.code.gson:gson"; private static final String INCOMPATIBLE_ERROR_MESSAGE = "There was a problem interacting with Gson; maybe you set an incompatible version?"; public static final String NAME = "gson"; - public static final String DEFAULT_VERSION = "2.11.0"; + public static final String DEFAULT_VERSION = "2.13.1"; private final JarState.Promised jarState; private final GsonConfig gsonConfig; diff --git a/plugin-gradle/CHANGES.md b/plugin-gradle/CHANGES.md index c35554a6eb..d2a80d31fd 100644 --- a/plugin-gradle/CHANGES.md +++ b/plugin-gradle/CHANGES.md @@ -4,6 +4,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format ( ## [Unreleased] +## Changed +* Bump default `gson` version to latest `2.11.0` -> `2.13.1`. ([#2414](https://github.com/diffplug/spotless/pull/2414)) + ## [7.1.0] - 2025-07-07 ### Added * Support for `idea` ([#2020](https://github.com/diffplug/spotless/pull/2020), [#2535](https://github.com/diffplug/spotless/pull/2535)) diff --git a/plugin-maven/CHANGES.md b/plugin-maven/CHANGES.md index e8e69c82f8..5fd50571d4 100644 --- a/plugin-maven/CHANGES.md +++ b/plugin-maven/CHANGES.md @@ -4,6 +4,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format ( ## [Unreleased] +## Changed +* Bump default `gson` version to latest `2.11.0` -> `2.13.1`. ([#2414](https://github.com/diffplug/spotless/pull/2414)) + ## [2.45.0] - 2025-07-07 ### Added * Support for `idea` ([#2020](https://github.com/diffplug/spotless/pull/2020), [#2535](https://github.com/diffplug/spotless/pull/2535))